Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 25. Apr 2024, 13:51

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: 11. Dec 2008, 20:56 
Offline

Joined: 11. Dec 2008, 20:42
Posts: 1
Hi,

How can I translate flash UI(buttons) in the frontend in my own language

tnx


Top
 Profile  
 
 Post subject:
PostPosted: 12. Dec 2008, 12:15 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
TFU has a lang folder with xml files where . There you can simply translate .e.g. the english one to your language.
And then you have to extend JFU that you language is automatically used by extending the mapping table.
The easiest way is that you transplate the xml to your language and send it too me and I include it to JFU.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 3. Jun 2009, 04:33 
Offline

Joined: 3. Jun 2009, 02:13
Posts: 18
We want to change some of the interface language. Is this possible? We're using only tfu/lang/default.xml. I tried to make changes there by they don't propagate to the interface. :(


Top
 Profile  
 
 Post subject:
PostPosted: 3. Jun 2009, 08:03 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
You have to read the readme in the folder.
the xml's for en,de and es are only delta files. the default is only the template with all strings.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 3. Jun 2009, 08:17 
Offline

Joined: 3. Jun 2009, 02:13
Posts: 18
Thanks for the reply. I did look at the Readme file, which indicates that the UI labels are not editable. However, the help file seemed to indicate is was possible. Also ran across some posts here that indicated changes could be made to the UI via the lang/*.xml. Is my understanding correct that the UI labels are not editable? Thanks for helping me get clear on this. :)


Top
 Profile  
 
 Post subject:
PostPosted: 3. Jun 2009, 08:52 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
The readme does even explain how to do the change.
I don't know which readme you where reading.

--
The languages for english, german and spanish are only delta
files used by TFU because this 3 languages are build into the flash.
--

The can be used to overwrite language string of the flash.

Even in the en.xml it is explained:

-
Please note - This file is only a delta file!
English, German and Spanisch are build into the flash already!

Go to the default.xml and copy the text you want to change into this
file. The example below is only a dummy!
-

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 3. Jun 2009, 17:40 
Offline

Joined: 3. Jun 2009, 02:13
Posts: 18
The readme file is tfu/lang/readme.txt. I have read the instructions there and in the default.xml file. As far as I can tell, I've executed the instructions correctly. We're using en.xml by default (no languages, so en is used by default, according to the documentation). My en.xml file looks like this:

Code:
<TFU>
  <LANG><KEY>grid_description</KEY><VALUE>Additional image description</VALUE></LANG>
  <LANG><KEY>grid_description_default</KEY><VALUE>Enter a description for this file</VALUE></LANG>
</TFU>


Not sure what I missed, but these values are not displayed on the UI.


Top
 Profile  
 
 Post subject:
PostPosted: 3. Jun 2009, 19:50 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I just tested exactly your setting - and this works fine for me. if I enable the description mode.

Is the description mode enabled?

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 3. Jun 2009, 19:56 
Offline

Joined: 3. Jun 2009, 02:13
Posts: 18
Yes, Description Mode enabled.


Top
 Profile  
 
 Post subject:
PostPosted: 3. Jun 2009, 20:12 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
strange. i'll check.

- Michael


Top
 Profile  
 
 Post subject: class Language
PostPosted: 3. Jun 2009, 20:20 
Offline

Joined: 3. Jun 2009, 02:13
Posts: 18
Michael,

One thing comes to mind. I had a conflict between JFU and another, larger, Joomla component. The conflict was with class Language. Since it was easier to resolve the problem in JFU than the other component, I changed class Language to class jfuLanguage in these files where appropriate:

/administrator/com_joomla_flash_uploader/joomla_flash_uploader.class.php
/administrator/com_joomla_flash_uploader/admin.joomla_flash_uploader.html.php
/components/com_joomla_flash_uploader/joomla_flash_uploader.html.php

To test the UI issue, I reset JFU to the original but still no luck. As far as I can tell my conflict fix is not interfering with the lang/*.xml files. Let me know if you think otherwise.


Top
 Profile  
 
 Post subject:
PostPosted: 3. Jun 2009, 20:36 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
i have tracked down the plroblem - the xml is loaded for all files but not if nothing is set - i'll change this + i do the rename of the class as well.

i'll make a update tonight.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 3. Jun 2009, 20:43 
Offline

Joined: 3. Jun 2009, 02:13
Posts: 18
Oh, that's great. Thanks! By the way, the component JFU had a conflict with was ECJC Online Shop, the Joomla version of osCommerce. It's a very big and complex component. The exact file was /administrator/components/com_ecjc_lang/admin.ecjc_lang.php, just for your reference.

Also sent you a PM on some other topics.


Top
 Profile  
 
 Post subject:
PostPosted: 3. Jun 2009, 21:34 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
redownload JFU from the website and reinstall it. The language class is now renamed and the flash does now load the en.xml even when no language is selected.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 4. Jun 2009, 10:58 
Offline

Joined: 3. Jun 2009, 02:13
Posts: 18
Works great now, plus no conflict with ECJC. THANKS! :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy