Thread Tools Display Modes
04-03-09, 02:49 PM   #1
JarisSeagull
A Defias Bandit
Join Date: Apr 2009
Posts: 2
Grammatical cases in Russian

Hi, folk.

I am sorry if this had already been asked.
In russian wow localisation each of the unit names, class names, races, etc. Has a grammatical case table. Player names are required to be specified in all cases upon creation, while NPC have a hybrid of machine algorithm and manual translation. So, here's the point:
The macros or addons which involve displaying text would do this very improperly in russian, since UnitName and friends return only nominative form, while it may be dependent on situation which form to use.
I wonder if there is some way one can get the case table from a given (at least) unit? Is there a way to see the code of standard emotes? 'cause they utilise the correct case and surely have all info needed.

Please help, RPHelper russian port is burning without this feature.

Example:

Nominative: Друид(Druid)
Genitive: Друида(Druida)
Dative: Друиду(Druidu)
Accusative: Друда(Druida)
Instrumental: Друидом(Druidom)
Prepositional: Друиде(Druide)

«I'm resurrecting the Druid»
Correct: Я воскрешаю Друида(Ya voskreshayu Druida)
Currently: Я воскрешаю Друид(Ya voskreshayu Druid)

Last edited by JarisSeagull : 04-03-09 at 02:56 PM.
  Reply With Quote
04-04-09, 08:13 AM   #2
Foxlit
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 91
Looking at the ruRU GlobalStrings.lua file, there are a few formatting options that aren't present in enUS; such as for example
Code:
ACHIEVEMENT_TOOLTIP_COMPLETE = "Достижение получено |3-4(%s) %d/%d/20%02d";
ACTION_DAMAGE_SHIELD_FULL_TEXT = "\"%2$s\" |3-1(%1$s) отражает %9$s |4единицу:единицы:единиц; %7$s на |3-3(%4$s)%6$s.";
ACTION_SPELL_AURA_REMOVED_DOSE_DEBUFF_FULL_TEXT = "Действие эффекта \"%2$s\" |3-1(%1$s) (%9$s) заканчивается.";
So my suggestion would be to try something like the following and see what it gets you.
Code:
print(("1: |3-1%1$s 2: |3-2%1$s 3: |3-3%1$s 4: |3-4%1$s 5: |3-5:%1$s 6: |3-6%1$s"):format(UnitName("player")));
__________________
... and you do get used to it, after a while.
  Reply With Quote
04-08-09, 11:30 AM   #3
JarisSeagull
A Defias Bandit
Join Date: Apr 2009
Posts: 2
Originally Posted by Foxlit View Post
Looking at the ruRU GlobalStrings.lua file, there are a few formatting options that aren't present in enUS; such as for example
Code:
ACHIEVEMENT_TOOLTIP_COMPLETE = "Достижение получено |3-4(%s) %d/%d/20%02d";
ACTION_DAMAGE_SHIELD_FULL_TEXT = "\"%2$s\" |3-1(%1$s) отражает %9$s |4единицу:единицы:единиц; %7$s на |3-3(%4$s)%6$s.";
ACTION_SPELL_AURA_REMOVED_DOSE_DEBUFF_FULL_TEXT = "Действие эффекта \"%2$s\" |3-1(%1$s) (%9$s) заканчивается.";
So my suggestion would be to try something like the following and see what it gets you.
Code:
print(("1: |3-1%1$s 2: |3-2%1$s 3: |3-3%1$s 4: |3-4%1$s 5: |3-5:%1$s 6: |3-6%1$s"):format(UnitName("player")));
Thanks for the reply. It doesn't work. Either |3-1%1$s or |3-1(%1$s) — no way. It just prints:
|3-1(Имя)
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Grammatical cases in Russian


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off