XEEN: RU Translated all constants.h strings for Clouds. Ready for test.
This commit is contained in:
parent
325eb338fe
commit
9f80f452e4
11 changed files with 51 additions and 38 deletions
|
@ -1359,7 +1359,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *FIX_IDENTIFY_GOLD() {
|
const char *FIX_IDENTIFY_GOLD() {
|
||||||
return "\x3l\v000\t000%s %s\fd for %u gold?";
|
return "\x3l\v000\t000%s %s\fd for %u %s?";
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *IDENTIFY_ITEM_MSG() {
|
const char *IDENTIFY_ITEM_MSG() {
|
||||||
|
|
|
@ -804,28 +804,17 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *CHARACTER_DETAILS() {
|
const char *CHARACTER_DETAILS() {
|
||||||
return "\x3"
|
return "\x3""l\v041\t196%s\t000\v002%s : %s %s %s"
|
||||||
"l\v041\t196%s\t000\v002%s : %s %s %s"
|
"\x3""r\t053\v028\f%02u%u\fd\t103\f%02u%u\fd"
|
||||||
"\x3"
|
"\x3""l\t131\f%02u%d\fd\t196\f15%lu\fd\x3""r"
|
||||||
"r\t053\v028\f%02u%u\fd\t103\f%02u%u\fd"
|
|
||||||
"\x3"
|
|
||||||
"l\t131\f%02u%d\fd\t196\f15%lu\fd\x3"
|
|
||||||
"r"
|
|
||||||
"\t053\v051\f%02u%u\fd\t103\f%02u%u\fd"
|
"\t053\v051\f%02u%u\fd\t103\f%02u%u\fd"
|
||||||
"\x3"
|
"\x3""l\t131\f%02u%u\fd\t196\f15%lu\fd"
|
||||||
"l\t131\f%02u%u\fd\t196\f15%lu\fd"
|
"\x3""r\t053\v074\f%02u%u\fd\t103\f%02u%u\fd"
|
||||||
"\x3"
|
"\x3""l\t131\f15%u\fd\t196\f15%lu\fd"
|
||||||
"r\t053\v074\f%02u%u\fd\t103\f%02u%u\fd"
|
"\x3""r\t053\v097\f%02u%u\fd\t103\f%02u%u\fd"
|
||||||
"\x3"
|
"\x3""l\t131\f15%u\fd\t196\f15%u %s\fd"
|
||||||
"l\t131\f15%u\fd\t196\f15%lu\fd"
|
"\x3""r\t053\v120\f%02u%u\fd\t103\f%02u%u\fd"
|
||||||
"\x3"
|
"\x3""l\t131\f15%u\fd\t196\f%02u%s\fd"
|
||||||
"r\t053\v097\f%02u%u\fd\t103\f%02u%u\fd"
|
|
||||||
"\x3"
|
|
||||||
"l\t131\f15%u\fd\t196\f15%u %s\fd"
|
|
||||||
"\x3"
|
|
||||||
"r\t053\v120\f%02u%u\fd\t103\f%02u%u\fd"
|
|
||||||
"\x3"
|
|
||||||
"l\t131\f15%u\fd\t196\f%02u%s\fd"
|
|
||||||
"\t245%s%s%s%s\fd";
|
"\t245%s%s%s%s\fd";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1418,7 +1407,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *FIX_IDENTIFY_GOLD() {
|
const char *FIX_IDENTIFY_GOLD() {
|
||||||
return "\x3""l\v000\t000%s %s\fd \xA7\xA0 %lu \xA7\xAE\xAB\xAE\xE2%s?"; // "\x3""l\v000\t000%s %s\fd за %lu золот%s?"
|
return "\x3""l\v000\t000%s %s\fd \xA7\xA0 %lu %s?"; // "\x3""l\v000\t000%s %s\fd за %lu %s?"
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *IDENTIFY_ITEM_MSG() {
|
const char *IDENTIFY_ITEM_MSG() {
|
||||||
|
|
Binary file not shown.
|
@ -933,7 +933,7 @@ int ItemsDialog::doItemOptions(Character &c, int actionIndex, int itemIndex, Ite
|
||||||
Common::String msg = Common::String::format(Res.FIX_IDENTIFY_GOLD,
|
Common::String msg = Common::String::format(Res.FIX_IDENTIFY_GOLD,
|
||||||
Res.FIX_IDENTIFY[0],
|
Res.FIX_IDENTIFY[0],
|
||||||
c._items[category].getFullDescription(itemIndex).c_str(),
|
c._items[category].getFullDescription(itemIndex).c_str(),
|
||||||
cost);
|
cost, getGoldPlurals(cost));
|
||||||
|
|
||||||
if (Confirm::show(_vm, msg) && party.subtract(CONS_GOLD, cost, WHERE_PARTY)) {
|
if (Confirm::show(_vm, msg) && party.subtract(CONS_GOLD, cost, WHERE_PARTY)) {
|
||||||
item._state._broken = false;
|
item._state._broken = false;
|
||||||
|
@ -946,7 +946,7 @@ int ItemsDialog::doItemOptions(Character &c, int actionIndex, int itemIndex, Ite
|
||||||
Common::String msg = Common::String::format(Res.FIX_IDENTIFY_GOLD,
|
Common::String msg = Common::String::format(Res.FIX_IDENTIFY_GOLD,
|
||||||
Res.FIX_IDENTIFY[1],
|
Res.FIX_IDENTIFY[1],
|
||||||
c._items[category].getFullDescription(itemIndex).c_str(),
|
c._items[category].getFullDescription(itemIndex).c_str(),
|
||||||
cost);
|
cost, getGoldPlurals(cost));
|
||||||
|
|
||||||
if (Confirm::show(_vm, msg) && party.subtract(CONS_GOLD, cost, WHERE_PARTY)) {
|
if (Confirm::show(_vm, msg) && party.subtract(CONS_GOLD, cost, WHERE_PARTY)) {
|
||||||
Common::String details = c._items[category].getIdentifiedDetails(itemIndex);
|
Common::String details = c._items[category].getIdentifiedDetails(itemIndex);
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common/config-manager.h"
|
||||||
#include "xeen/dialogs/dialogs_quick_ref.h"
|
#include "xeen/dialogs/dialogs_quick_ref.h"
|
||||||
#include "xeen/resources.h"
|
#include "xeen/resources.h"
|
||||||
#include "xeen/xeen.h"
|
#include "xeen/xeen.h"
|
||||||
|
@ -32,6 +33,24 @@ void QuickReferenceDialog::show(XeenEngine *vm) {
|
||||||
delete dlg;
|
delete dlg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *QuickReferenceDialog::getDaysPlurals(int val) {
|
||||||
|
if (Common::RU_RUS == Common::parseLanguage(ConfMan.get("language"))) {
|
||||||
|
int i = val % 100;
|
||||||
|
if (i < 5 || i > 20)
|
||||||
|
switch (val % 10) {
|
||||||
|
case 1:
|
||||||
|
return Res.DAYS[0];
|
||||||
|
case 2:
|
||||||
|
case 3:
|
||||||
|
case 4:
|
||||||
|
return Res.DAYS[1];
|
||||||
|
}
|
||||||
|
return Res.DAYS[2];
|
||||||
|
} else {
|
||||||
|
return Res.DAYS[val == 1 ? 0 : 1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void QuickReferenceDialog::execute() {
|
void QuickReferenceDialog::execute() {
|
||||||
Combat &combat = *_vm->_combat;
|
Combat &combat = *_vm->_combat;
|
||||||
EventsManager &events = *_vm->_events;
|
EventsManager &events = *_vm->_events;
|
||||||
|
@ -65,7 +84,7 @@ void QuickReferenceDialog::execute() {
|
||||||
lines[3].c_str(), lines[4].c_str(), lines[5].c_str(),
|
lines[3].c_str(), lines[4].c_str(), lines[5].c_str(),
|
||||||
lines[6].c_str(), lines[7].c_str(),
|
lines[6].c_str(), lines[7].c_str(),
|
||||||
party._gold, party._gems,
|
party._gold, party._gems,
|
||||||
food, food == 1 ? "" : "s"
|
food, getDaysPlurals(food)
|
||||||
);
|
);
|
||||||
|
|
||||||
Window &w = windows[24];
|
Window &w = windows[24];
|
||||||
|
|
|
@ -31,6 +31,11 @@ class QuickReferenceDialog : public ButtonContainer {
|
||||||
private:
|
private:
|
||||||
QuickReferenceDialog(XeenEngine *vm) : ButtonContainer(vm) {}
|
QuickReferenceDialog(XeenEngine *vm) : ButtonContainer(vm) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get plural day/days form
|
||||||
|
*/
|
||||||
|
const char *getDaysPlurals(int val);
|
||||||
|
|
||||||
void execute();
|
void execute();
|
||||||
public:
|
public:
|
||||||
static void show(XeenEngine *vm);
|
static void show(XeenEngine *vm);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue