View Single Post
07-08-09, 12:57 AM   #1
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,905
Slash Commands and localisations

Scott, just a quick question when you get a moment.

Whilst working on updating my LDB addon for nUIs new Release update I noticed that the settings seem to be localised in files but actually in English. Is that supposed to be the case ?

An example from the zhTW localisation file.

Code:
	nUI_L[nUI_SLASHCMD_OPTIONS( nUI_SLASHCMD_FEEDBACK, "curse" )]    = "curse";
	nUI_L[nUI_SLASHCMD_OPTIONS( nUI_SLASHCMD_FEEDBACK, "disease" )]  = "disease";
	nUI_L[nUI_SLASHCMD_OPTIONS( nUI_SLASHCMD_FEEDBACK, "magic" )]    = "magic";
	nUI_L[nUI_SLASHCMD_OPTIONS( nUI_SLASHCMD_FEEDBACK, "poison" )]   = "poison";
I take it instead of using "curse" I should use nUI_L[nUI_SLASHCMD_OPTIONS( nUI_SLASHCMD_FEEDBACK, "curse" )] so that if at a later date it becomes localised the addon will reflect that.

Thought I had better ask that question before I start localising all the text if most of that stuff is in nUI by default.

Edit: Rofl, no matter, just noticed whilst looking at the old code I had already used your localised versions already

Edit2: Edited due to me being too tired and wrote answer instead of ask .. rofl.
__________________

Last edited by Xrystal : 07-08-09 at 08:48 AM.