Imprudence:Features needing translation

From Kokua Wiki

Jump to: navigation, search

This is a list of features in Imprudence that need to have their text translated into non-en-us languages. The viewer handles translation through language-specific xml files found in the default skin's folder. For example, the French language is found in the \skins\default\xui\fr directory. Once you've changed the files, please post them as either a patch or in full (see Contributing Code).

This list is a work in progress.

Contents

How to translate the UI

These examples come from \skins\default\xui\fr\floater_instant_message.xml:

Buttons and other widgets

Your translated elements must have the same name="TEXT" attribute as the English version, this is used by Imprudence to find the correct widget to be translated.

You only need to include name and any attributes needs to be translated (for buttons, this is label). You can leave out any attribute that does not need to be translated (so if the English version changes layout, the translation will too).

Example:

	<button label="Envoyer" name="send_btn"/>

Text

There are two forms of text the viewer uses. One form is a string, which is just a word or a phrase the viewer needs to find.

	<string name="session_start_string">
		Début de la session avec [NAME], veuillez patienter.
	</string>

The other is a Text property, which lays out a specific piece of text in the UI:

	<text name="title_string">
		Envoyer un message instantané à [NAME]
	</text>

Both are translated the same way, by editing the text between the opening and closing tag.

UI that needs translation

Login screen

panel_login.xml

Profile window

panel_avatar.xml

Groups list

panel_groups.xml

floater_choose_group.xml

Mini-Map

floater_mini_map.xml

Windlight toolbar

panel_windlight_controls.xml

panel_windlight_remote.xml and panel_windlight_remote_expanded.xml

Communicate window

floater_chatterbox.xml

Preferences

General

panel_preferences_general.xml

Input & Camera

panel_preferences_input.xml

Graphics

panel_preferences_graphics1.xml

Audio

panel_preferences_audio.xml

Chat

panel_preferences_chat.xml

Communication

panel_preferences_im.xml

Menus

The following menu labels need translation:

Main Menu

menu_viewer.xml

Inventory

floater_inventory.xml

Mini-Map

menu_mini_map.xml

(Most of these might already be translated in LL's Snowglobe viewer or trunk by now. I'd check.)

Advanced

menu_viewer.xml

Various Strings

strings.xml

(at the bottom)

If you can't find the text in xml

There are two other places it could be:

If it's not there, more than likely Linden Lab hardcoded it into the viewer source. Let us known on the ImpDev mailing list so we can fix it. Or better yet, if you're a developer, submit a patch to make that text translatable!

External Links

Personal tools
Namespaces
Variants
Actions
Navigation
Wiki
Toolbox