[vlc-devel] [PATCH] Lua: new script Allocine (France)

Rafaël Carré rafael.carre at gmail.com
Fri Feb 3 22:45:34 CET 2012


Le 2010-06-02 15:22, Jean-Philippe André a écrit :
> This extension is in French only.

This seems to confuse people using non french locale as reported by a
brazilian translator on IRC.

Some work was done on translating http interfaces but I am not sure what
can be done for lua.

Querying the locale from .lua code and having the .lua scripts use the
translation if available?

> a = {fr="bonjour", en="hello", C="hello"}
> tr = a["fr"]
> print(tr)
bonjour
> tr = a["en"]
> print(tr)
hello
> tr = a["pt_BR"]
> print(tr)
nil
> print(a["C"])
hello
>

That could duplicate translating effort since the translations would be
separate from .po though.

> A german version may appear soon.
> ---
>  share/lua/extensions/allocine-fr.lua |  300 ++++++++++++++++++++++++++++++++++
>  1 files changed, 300 insertions(+), 0 deletions(-)
>  create mode 100644 share/lua/extensions/allocine-fr.lua

Why do we ship this in VLC builds?

It should be available on addons.videolan.org and I am not sure if it
should be in vlc.git

--
(p.s. I didn't have the mail in my archives or in gmane so I answer to
the patch extracted from git, but this was committed to vlc.git back then)



More information about the vlc-devel mailing list