it's working

This commit is contained in:
tildearrow 2024-06-04 18:20:59 -05:00
parent 8120b17c2d
commit 78c5d14116
8 changed files with 7 additions and 7 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -4924,9 +4924,9 @@ msgstr "To jest kolejny test systemu tłumaczeń."
#, c-format #, c-format
msgid "%d apple" msgid "%d apple"
msgid_plural "%d apples" msgid_plural "%d apples"
msgstr[0] "" msgstr[0] "%d jabłko"
msgstr[1] "" msgstr[1] "%d jabłka"
msgstr[2] "" msgstr[2] "%d jabłek"
#: src/gui/chanOsc.cpp:32 #: src/gui/chanOsc.cpp:32
msgid "None (0%)" msgid "None (0%)"

View file

@ -4853,9 +4853,9 @@ msgstr ""
#, c-format #, c-format
msgid "%d apple" msgid "%d apple"
msgid_plural "%d apples" msgid_plural "%d apples"
msgstr[0] "" msgstr[0] "%d яблоко"
msgstr[1] "" msgstr[1] "%d яблока"
msgstr[2] "" msgstr[2] "%d яблок"
#: src/gui/chanOsc.cpp:32 #: src/gui/chanOsc.cpp:32
msgid "None (0%)" msgid "None (0%)"

View file

@ -853,7 +853,7 @@ const char* momo_ngettext(const char* str1, const char* str2, unsigned long amou
// then I don't know how are plural strings stored // then I don't know how are plural strings stored
unsigned int plural=runStackMachine(curDomain->pluralProgram,256,amount); unsigned int plural=runStackMachine(curDomain->pluralProgram,256,amount);
// TODO: optimize // TODO: optimize
for (size_t i=curDomain->firstString[(unsigned char)(str[0])]; i<curDomain->stringCount; i++) { for (size_t i=curDomain->firstString[(unsigned char)(str1[0])]; i<curDomain->stringCount; i++) {
if (strcmp(curDomain->stringPtr[i],str1)==0) { if (strcmp(curDomain->stringPtr[i],str1)==0) {
const char* ret=curDomain->transPtr[i]; const char* ret=curDomain->transPtr[i];
for (unsigned int j=0; j<plural; j++) { for (unsigned int j=0; j<plural; j++) {