Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.
/ lampa Public archive
forked from yumata/lampa

English auto-translated version of Lampa.mx

Notifications You must be signed in to change notification settings

cheadrian/lampa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archived

Language picker was added in the upstream.

Lampa

Changelog

  • V2: Based on 1.3.9, compiled from source with translation support using i18next lampa-source.
  • V1: Based on 1.3.7, manually translated already compiled Lampa.

Description

Translated README.md The application is completely free and uses public links to view information about movies, new releases, popular movies, etc. All available information is used solely for educational purposes, the application does not use its own servers to distribute information.

Lamp sources are available here: https://github.com/yumata/lampa-source

Devices

  • LG WebOS
  • Samsung Tizen
  • MSX

Installation for MSX

For now, manual installation, you need your own hosting or local web server.

  1. Immediately click on the (Github) green (blue) button (Code) and select (Download ZIP) then upload the files to the hosting or web server.
  2. Open file msx/start.json and replace the content of {domain} to your domain or IP
  3. Open MSX and install Lampa using your domain or IP

Web Demo

There are two links which you can use to try this Lampa version using web browser or MSX.

Heroku - Media Station X: lampa-en.herokuapp.com

Pack for WebOS

Added appinfo.json for WebOS. Use to get IPK:

ares-package -n .

Removed any additional folder not used for WebOS app, like .git, msx before you pack, in order to make it slimmer. Open original .ipk from Lampa releases page with 7-zip and take a look.

Installation: using ares-install or Webos Dev Manager.

You might want to root your WebOS / LG TV before. More details here.

Translate

Update: After 1.3.9 translation is done using i18next on client-side. You can switch between languages.

Deprecated after V2: Manual translation method for compiled Lampa You might want to manually fix translation as quality isn't nearly great but understandable enough.

Also, there will be some unfixed bugs, but should be usable overall.

Using Visual Studio Code install

Extensions:

  • Native-ASCII Converter
  • Vscode Google Translate

Alternative extension:

  • Google Translate (activate Replace in extension settings)
  • CTRL + SHIFT + P -> Translate

For app.min.js

Open in VS Code:

CTRL + SHIFT + P -> Convert Ascii to Native
CTRL + F -> Use Regular Expression
CTRL + F -> (?=[а-яА-ЯёЁ]*)(?=[а-яА-ЯёЁ])([\wа-яА-ЯёЁ]+){10}
CLICK INSIDE FILE
CTRL + F2
CTRL + SHIFT + P -> Translate Selection
CTRL + F -> (?=[а-яА-ЯёЁ]*)(?=[а-яА-ЯёЁ])([\wа-яА-ЯёЁ]+){8}
CLICK INSIDE FILE
CTRL + F2
CTRL + SHIFT + P -> Translate Selection
Repeat with {6},{4},{2} and wtihout {} at the end.

Fix "It's", "Author's", etc.

CTRL + F -> (?<=[a-z])'s
REPLACE ALL -> \'s

Change tmdb_lang from 'ru' to 'en'. Find keyboard and replace 'default' to 'ru' then 'en' to 'default'.

Other files

msx/start.json -> replace msx/lang/ru.json to msx/lang/en.json
Copy msx/lang/ru.json -> msx/lang/en.json
Translate en.json using VS Code 
Select strings with ALT
CTRL + SHIFT + P -> Translate

Translate index.html like so.