plupload translation

1 year 4 months ago #68706 by lomuyeh
plupload translation was created by lomuyeh
Seems 3.2 is using new plupload for image upload.
I found that plupload containing translation js for a lot of languages, but seems not load in upload interface.

Here is the document of using the plupload language js:
github.com/moxiecode/plupload/wiki/Plupload-in-Your-Language

So I tried adding the script in \administrator\components\com_flexicontent\views\filemanager\tmpl\default.php:
$document->addScript('/components/com_flexicontent/librairies/plupload/js/i18n/zh_TW.js');

And the translation works! The uploader shows Chinese words.

I don't know if you add any script for plupload translation js. If not, maybe try to add this option. If yes, please let me know where I missed.

Thanks,
Lomu

Please Log in or Create an account to join the conversation.

1 year 4 months ago #68707 by ggppdk
Replied by ggppdk on topic plupload translation
Hello

this is working already properly

e.g.
French and Greek are loaded properly

in your case check if your Joomla language
does it have language code: zh_TW
?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

1 year 4 months ago #68709 by lomuyeh
Replied by lomuyeh on topic plupload translation
Hi
I don't know if this is the problem but the language code of traditional Chinese is zh-TW.
I renamed zh_TW.js to zh-TW.js, and it works.

Thanks,
Lomu

Please Log in or Create an account to join the conversation.

1 year 4 months ago - 1 year 4 months ago #68710 by ggppdk
Replied by ggppdk on topic plupload translation
Hello

it is a bug
firstwe try to find file ... with language code only

e.g. (this is found in 95 % of cases)
de.js (German)
fr.js (French)
zh.js (Chinese)

and then we try to find file language-COUNTRY
e.g.
zh-CH.js

but the file or disk are:
zh_CH.js
zh_CN.js
ua_UA.js

so we need to fix this please rename file back and patch file
(fix will be in next release)
components/com_flexicontent/classes/helpers/html.php

about line 1561: (not line 1231)
replace:
$country_code = flexicontent_html::getUserCurrentLang($short_tag=false);
with
$country_code = str_replace('-', '_', flexicontent_html::getUserCurrentLang($short_tag=false));


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.