Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions HowToTranslate.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ for example:
Nwe should create the directory where we'll place the .mo files (change es_AR by your language standard name):

```
mkdir -p 18n/es_AR/LC_MESSAGES
mkdir -p i18n/es_AR/LC_MESSAGES
```

The last step is to generate the .mo file:

```
msgfmt --output-file=18n/es_AR/LC_MESSAGES/gfx_curses.mo po/es_AR/gfx_curses.po
msgfmt --output-file=18n/es_AR/LC_MESSAGES/gfx_terminal.mo po/es_AR/gfx_terminal.po
msgfmt --output-file=18n/es_AR/LC_MESSAGES/highscore.mo po/es_AR/highscore.po
msgfmt --output-file=i18n/es_AR/LC_MESSAGES/gfx_curses.mo po/es_AR/gfx_curses.po
msgfmt --output-file=i18n/es_AR/LC_MESSAGES/gfx_terminal.mo po/es_AR/gfx_terminal.po
msgfmt --output-file=i18n/es_AR/LC_MESSAGES/highscore.mo po/es_AR/highscore.po
```

## And this is it!
Binary file added i18n/ru_RU/LC_MESSAGES/gfx_curses.mo
Binary file not shown.
Binary file added i18n/ru_RU/LC_MESSAGES/gfx_terminal.mo
Binary file not shown.
Binary file added i18n/ru_RU/LC_MESSAGES/highscore.mo
Binary file not shown.
34 changes: 34 additions & 0 deletions po/ru_RU/gfx_curses.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Russian translations for 2048 package.
# Copyright (C) 2020 THE 2048'S COPYRIGHT HOLDER
# This file is distributed under the same license as the 2048 package.
# Max Vetrov <maxvetrov555@yandex.ru>, 2020.
#
msgid ""
msgstr ""
"Project-Id-Version: 2048 v1.0.1\n"
"Report-Msgid-Bugs-To: matiasezequielbian@gmail.com\n"
"POT-Creation-Date: 2018-04-26 18:58-0300\n"
"PO-Revision-Date: 2020-02-06 23:44+0200\n"
"Last-Translator: Max Vetrov <maxvetrov555@yandex.ru>\n"
"Language-Team: Russian\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"

#: src/gfx_curses.c:70
#, c-format
msgid " Hi: %d\n"
msgstr " Очки: %d\n"

#: src/gfx_curses.c:68
#, c-format
msgid "Score: %d\n"
msgstr "Очки: %d\n"

#: src/gfx_curses.c:66
#, c-format
msgid "Score: %d (+%d)\n"
msgstr "Очки: %d (+%d)\n"
34 changes: 34 additions & 0 deletions po/ru_RU/gfx_terminal.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Russian translations for 2048 package.
# Copyright (C) 2020 THE 2048'S COPYRIGHT HOLDER
# This file is distributed under the same license as the manasa package.
# Max Vetrov<maxvetrov555@yandex.ru>, 2020.
#
msgid ""
msgstr ""
"Project-Id-Version: 2048 v1.0.1\n"
"Report-Msgid-Bugs-To: matiasezequielbian@gmail.com\n"
"POT-Creation-Date: 2018-04-26 19:02-0300\n"
"PO-Revision-Date: 2020-02-06 23:45+0200\n"
"Last-Translator: Max Vetrov<maxvetrov555@yandex.ru>\n"
"Language-Team: Russian\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"

#: src/gfx_terminal.c:46
#, c-format
msgid " Hi: %ld\n"
msgstr " Счет: %ld\n"

#: src/gfx_terminal.c:44
#, c-format
msgid "Score: %ld\n"
msgstr "Счет: %ld\n"

#: src/gfx_terminal.c:42
#, c-format
msgid "Score: %ld (+%ld)\n"
msgstr "Очки: %ld (+%ld)\n"
57 changes: 57 additions & 0 deletions po/ru_RU/highscore.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Russian translations for manasa package.
# Copyright (C) 2020 THE 2048'S COPYRIGHT HOLDER
# This file is distributed under the same license as the manasa package.
# Max Vetrov<maxvetrov555@yandex.ru>, 2020.
#
msgid ""
msgstr ""
"Project-Id-Version: 2048 v1.0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-05-17 18:12-0300\n"
"PO-Revision-Date: 2020-02-06 23:46+0200\n"
"Last-Translator: Max Vetrov<maxvetrov555@yandex.ru>\n"
"Language-Team: Russian\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"

#: src/highscore.c:58
#, c-format
msgid "Are you sure you want to reset your scores? Y(es) or N(o)\n"
msgstr "Вы уверены, что хотите сбросить свои очки? (Д)а или (Н)ет\n"

#: src/highscore.c:76
#, c-format
msgid "Please enter Yes or No\n"
msgstr "Пожалуйста введите Да или Нет\n"

#: src/highscore.c:95
#, c-format
msgid "load: Failed to open highscore file\n"
msgstr "Загрузка: Ошибка открытия файла рекордов\n"

#: src/highscore.c:100
#, c-format
msgid "load: Failed to parse highscore file\n"
msgstr "Загрузка: Ошибка обработки файла рекордов\n"

#: src/highscore.c:122
#, c-format
msgid "save: Failed to open highscore file\n"
msgstr "Сохранение: Ошибка открытия файла рекордов\n"

#: src/highscore.c:127
#, c-format
msgid "save: Failed to write highscore file\n"
msgstr "Сохранение: Ошибка записи файла рекордов\n"

#: src/highscore.c:71
msgid "y"
msgstr "д"

#: src/highscore.c:71
msgid "yes"
msgstr "да"
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int main(int argc, char **argv)


setlocale (LC_ALL, "");
bindtextdomain ("gfx_terminal", targetDir("PWD","/18n/"));
bindtextdomain ("gfx_terminal", targetDir("PWD","/i18n/"));
textdomain ("gfx_terminal");

struct gamestate *g = gamestate_init(argc, argv);
Expand Down