Web-based translations

walterar
Posts: 95
Joined: Sat Sep 14, 2013 4:48 pm

Re: Web-based translations

Post by walterar »

It would be nice if this would work:

Code: Select all

 local mystrings = Lang.GetResource("mod-whatever") or Lang.GetResource("mod-whatever", "en")
robn
Posts: 302
Joined: Mon Jul 01, 2013 1:11 am
Location: Melbourne, Australia

Re: Web-based translations

Post by robn »

Ok, I'll do it on the way home. It's pretty simple so it should make tomorrow's build.
walterar
Posts: 95
Joined: Sat Sep 14, 2013 4:48 pm

Re: Web-based translations

Post by walterar »

Although, even better would be:

Code: Select all

Local l = Lang.GetResource ("mod-whatever") or Lang.GetResource ("mod-whatever", "en")
Or something like. It is assumed that "en" always.
robn
Posts: 302
Joined: Mon Jul 01, 2013 1:11 am
Location: Melbourne, Australia

Re: Web-based translations

Post by robn »

Sorry, I'm not seeing the difference?
robn
Posts: 302
Joined: Mon Jul 01, 2013 1:11 am
Location: Melbourne, Australia

Re: Web-based translations

Post by robn »

Ok, that's on master now.
walterar
Posts: 95
Joined: Sat Sep 14, 2013 4:48 pm

Re: Web-based translations

Post by walterar »

It seems that everything is working. The new system appears hostile compared to the previous. I've seen a file .tx/config, is necessary to define all the modules there? Or not for mods? It's a problem the lack of info added to the urgency.
FluffyFreak
Posts: 1343
Joined: Tue Jul 02, 2013 1:49 pm
Location: Beeston, Nottinghamshire, GB
Contact:

Re: Web-based translations

Post by FluffyFreak »

Actually walterar there's documentation on the wiki
http://pioneerwiki.com/wiki/Translations
walterar
Posts: 95
Joined: Sat Sep 14, 2013 4:48 pm

Re: Web-based translations

Post by walterar »

@FluffyFreak There, only see a small preamble. :)
jpab
Posts: 77
Joined: Thu Jul 18, 2013 12:30 pm
Location: UK

Re: Web-based translations

Post by jpab »

walterar wrote:It seems that everything is working. The new system appears hostile compared to the previous. I've seen a file .tx/config, is necessary to define all the modules there? Or not for mods? It's a problem the lack of info added to the urgency.
The .tx/config file is only used by the transifex client tool. The game itself doesn't use it, and mods don't need to change it.

John B
walterar
Posts: 95
Joined: Sat Sep 14, 2013 4:48 pm

Re: Web-based translations

Post by walterar »

I am of the view that what is gained in translation interface was lost in the interface builder - modifier. In the previous system (on file Languages.lua) you could "see" the plot of a mission module. Now that's impossible. I think in the future, we must do a better interface for the texts creative. Meanwhile, it is what it is. :)
Post Reply