Archived

This topic is now archived and is closed to further replies.

Lord Alderaan

Multi-Language support for WebUI

Recommended Posts

FWIW, it seems to me like Directrix is already using translations from µTS as the strings for webui. Makes it much easier for translators (translate one, translate all; don't have to worry about implementation/formatting).

Share this post


Link to post
Share on other sites

Ok, updated the first post and my mirror with Spike_B's newest version. E-mail send to the other mirrors.

Ultima, in the new webui, does that mean we can use our translations (after some string renaming) or the µtorrent translation files?

Share this post


Link to post
Share on other sites

The translation files that you can get from the download page are used. So, no further translating is necessary (there are some strings that are WebUI-specific, which if needed, can be integrated into µTS or here in the forum).

Share this post


Link to post
Share on other sites

Sounds good.

So did you make the new webui multi-language or does it need to be modded by the community?

If you did, did you implement a browser language check similar to the one Bumblebee made? Because the webui should display in the language of the visitor and not the language of the host. (Because we concluded someone with a German browser looking at the webui of someone running µtorrent in Czech should see the webui in German by default. Client side decision.)

Share this post


Link to post
Share on other sites

Ok, if new webui uses utorrent's translation files, that means that those few things that couldn't be translated will be translated. It sucks though, feels like my timing was absolutely horrible...

Share this post


Link to post
Share on other sites
@LordAlderaan: No modding will be necessary. Everything will be included in the webui.zip file. It'll be just like in µT; in the settings "window" there will be a drop-down, you choose the language, the setting gets saved, and a (auto-)refresh later you'll have the WebUI in the language of your choosing. Language auto-detection pisses me off, so, I won't add it...although, I guess I could add a setting to enable it. Either way, it'll be a do it once & never again kind of thing.

Share this post


Link to post
Share on other sites

So there will be two translation files. Will you be using the current multi-language file as a starting point for the new version of WebUI prior to release or will those making these mods need to join the TS team to make sure their language is included IF it's not already in the utorrent.lng repository?

Edit: I kinda like the idea that the WebUI pops up in the native language of the browser... I think the cookie should remain client side instead of being added to webui.cookie

Share this post


Link to post
Share on other sites

Sounds good Directix. U could use Bumblebees default language code.

But it is true that every user only needs to pick his/her preferred language one time and a cookie will remember it.

jewelisheaven: I don't think the webui has or will have server side session information. Otherwise they would have implemented a better login then http auth :) You can rest assured that the language choice will be saved in a cookie.

Share this post


Link to post
Share on other sites

µTorrent does store a cookie inside settings.dat that webUI looks at. Without it, webUI would need to be configured over and over every time you logged into it.

@jewelisheaven: As I said before, it's "translate once, translate all." Naturally, that'd mean that everything will stay inside of µTS, and if a translation doesn't already exist (kinda rare, with 50 translations already), someone would need to translate it there.

Share this post


Link to post
Share on other sites

oszy007

Don't pack the THUMBS.DB file into the IMAGES folder.

Don't write speacial letters as web codes (ã á à ...) - use UTF8 codepage!

Share this post


Link to post
Share on other sites

Already removed the thumbs.db file!

about the letters, I made as the spanish language.

I looked the codification on firefox and it was utf8 so I thinked that it was already on utf8...

I'm noob on it, where I find the codes for the utf8?

edit

I think that I understood what u talked

check the br.js again

http://oszy007.googlepages.com/webui.zip

is it ok now?

Share this post


Link to post
Share on other sites

I know less work for you maintainers... does this mean we can expect a public update to the main webui code sooner rather than later?? Because you guys are helping Directrix out, or is the progress in this regard separate from the basecode.

Share this post


Link to post
Share on other sites