Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

The flash uploader will not pick up my xml language file
https://www.tinywebgallery.com/forum/viewtopic.php?f=13&t=1294
Page 1 of 1

Author:  baijianpeng [ 18. Nov 2007, 05:55 ]
Post subject:  The flash uploader will not pick up my xml language file

I noticed that in the original release package of JFU v2.5.4, there is no Chinese language file in the lang folder for the Flash.

Then I made one based on the en.xml and renamed it to cn.xml. Next I copy my cn.xml to the lang folder beside the en.xml.

Of course my Joomla! 1.0.13 had been set to use simplified_chinese as my site language.

But when I go to the Upload page at backend, the button text on the Flash is still English, not my Chinese translation.

What is wrong? How can I told the Flash to pick up which xml file for simplified_chinese locale settings in Joomla! ?

Do you have any language mapping method to do this job ?

Thanks.

Author:  TinyWebGallery [ 18. Nov 2007, 22:54 ]
Post subject: 

No chinese language file?

there is a cn.xml included!
In joomla\tfu\lang

and yes there is a mapping

"chinese_traditional" => "cn",
"chinese_simplified" => "cn",

are already defined in
joomla_flash_uploader.class.php

It this not the right mapping?

/Michael

Author:  baijianpeng [ 19. Nov 2007, 02:06 ]
Post subject: 

TinyWebGallery wrote:
No chinese language file?

there is a cn.xml included!
In joomla\tfu\lang

and yes there is a mapping

"chinese_traditional" => "cn",
"chinese_simplified" => "cn",

are already defined in
joomla_flash_uploader.class.php

It this not the right mapping?

/Michael


sorry, I did not notice that file.

Ok, finally I found the reason why there is one cn.xml file but JFU won't use it.

You had give a wrong name for Chinese language when mapping.

In the file joomla_flash_uploader.class.php, you should edit around line 125 and change the Chinese language name to:

"traditional_chinese" => "tw",
"simplified_chinese" => "cn",

These are the standard name for Chinese language in Joomla! . If you don't have a tw.xml file, I can send one to you.

Author:  TinyWebGallery [ 19. Nov 2007, 09:02 ]
Post subject: 

Thanks - i'll change this,

are the language files tw and cn very different?
I don't have a tw one.

If you have a translation it would be great to get it.
It would be even better to get the translations for TFU 2.7 you can find in the forum.
Only a couple of lines more to translate.

Thanks,
Michael

Author:  baijianpeng [ 19. Nov 2007, 11:11 ]
Post subject: 

Ok, I finished the Chinese translation for TFU 2.6 (I can't find 2.7).

Since I can't attach file here, I sent it to you by e-mail.

I had insert my personal info into the head of the file. If the former translator think that is not appropriate, you can delete that.

Thanks for your efforts and contribution to us Joomla! users.

Author:  TinyWebGallery [ 19. Nov 2007, 11:46 ]
Post subject: 

You'll find it here:

#removed_broken_link

Don't use this version for production because I already have 2 small open point that will be fixed this week in beta 2 ;).

/Michael

Author:  TinyWebGallery [ 19. Nov 2007, 11:55 ]
Post subject: 

I updated the download link - it's now beta 2 which is fine ;).

/Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/