Skip to main content
Transifex Config Started by TE · · Read 17508 times 0 Members and 1 Guest are viewing this topic. previous topic - next topic

Transifex Config

Just for documentation.
This is the current configuration file (language file mappings) for downloading the translation from Transifex with the transifex client:

Code: (config) [Select]
[main]
host = https://www.transifex.com
lang_map = en: english, de: german, pl: polish, it: italian, id: indonesian, de_DE: german-formal, es: spain, ar: arabic, fr: french, nl: dutch, el: greek

[elkarte.Admin]
file_filter = themes/default/languages/<lang>/Admin.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.BadBehaviorlog]
file_filter = themes/default/languages/<lang>/BadBehaviorlog.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Drafts]
file_filter = themes/default/languages/<lang>/Drafts.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Editor]
file_filter = themes/default/languages/<lang>/Editor.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.EmailTemplates]
file_filter = themes/default/languages/<lang>/EmailTemplates.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Errors]
file_filter = themes/default/languages/<lang>/Errors.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Help]
file_filter = themes/default/languages/<lang>/Help.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.index]
file_filter = themes/default/languages/<lang>/index.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.install]
file_filter = themes/default/languages/<lang>/install.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Login]
file_filter = themes/default/languages/<lang>/Login.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Maillist]
file_filter = themes/default/languages/<lang>/Maillist.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Maintenance]
file_filter = themes/default/languages/<lang>/Maintenance.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.ManageBoards]
file_filter = themes/default/languages/<lang>/ManageBoards.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.ManageCalendar]
file_filter = themes/default/languages/<lang>/ManageCalendar.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.ManageMail]
file_filter = themes/default/languages/<lang>/ManageMail.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.ManageMembers]
file_filter = themes/default/languages/<lang>/ManageMembers.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.ManagePaid]
file_filter = themes/default/languages/<lang>/ManagePaid.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.ManagePermissions]
file_filter = themes/default/languages/<lang>/ManagePermissions.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.ManageScheduledTasks]
file_filter = themes/default/languages/<lang>/ManageScheduledTasks.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.ManageSettings]
file_filter = themes/default/languages/<lang>/ManageSettings.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.ManageSmileys]
file_filter = themes/default/languages/<lang>/ManageSmileys.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.ManageThemes]
file_filter = themes/default/languages/<lang>/ManageThemes.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Manual]
file_filter = themes/default/languages/<lang>/Manual.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Mentions]
file_filter = themes/default/languages/<lang>/Mentions.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.ModerationCenter]
file_filter = themes/default/languages/<lang>/ModerationCenter.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Modlog]
file_filter = themes/default/languages/<lang>/Modlog.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Packages]
file_filter = themes/default/languages/<lang>/Packages.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.PersonalMessage]
file_filter = themes/default/languages/<lang>/PersonalMessage.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Post]
file_filter = themes/default/languages/<lang>/Post.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Profile]
file_filter = themes/default/languages/<lang>/Profile.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Reports]
file_filter = themes/default/languages/<lang>/Reports.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Search]
file_filter = themes/default/languages/<lang>/Search.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Settings]
file_filter = themes/default/languages/<lang>/Settings.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Stats]
file_filter = themes/default/languages/<lang>/Stats.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Validation]
file_filter = themes/default/languages/<lang>/Validation.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY

[elkarte.Who]
file_filter = themes/default/languages/<lang>/Who.<lang>.php
host = https://www.transifex.net
source_lang = en
type = PHP_ALT_ARRAY
Thorsten "TE" Eurich
------------------------

Re: Transifex Config

Reply #1

And here attached a php to create the packages usable directly into the package manager. :D

  • Initialize a transifex "repository",
  • Save the file attached into the same directory,
  • Download with transifex cli tool the languages you are interested in,
  • Run pack_langs.php,

It will automatically create one or more packages ready to be used with the package manager.
Bugs creator.
Features destroyer.
Template killer.

Re: Transifex Config

Reply #2

I wonder if once pushed that way is possible also to push the translations back...
Bugs creator.
Features destroyer.
Template killer.

Re: Transifex Config

Reply #3

@TE the lang map in the config file should be updated to:
Code: [Select]
lang_map = en: english, de: german, pl: polish, it: italian, id: indonesian, de_DE: german-formal, es: spanish, ar: arabic, fr: french, nl: dutch, el: greek, pt: portuguese, es_419: spanish_latin, zh_CN: chinese, pt_BR: portuguese_brazilian, es_AR: spanish_argentina, hu: hungarian, th: thai

There are more actually, but these are the ones that appear on the site, so I guess for the time being that's enough.
Bugs creator.
Features destroyer.
Template killer.

Re: Transifex Config

Reply #4

And my for Malay / Malaysia. :)

Re: Transifex Config

Reply #5

hmm... I feel this config was already old and the server changed in the meantime, because Malay is correctly converted...
Bugs creator.
Features destroyer.
Template killer.