Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ru:translations:test-po-file [2010/07/31 15:56] – created 178.49.18.203ru:translations:test-po-file [2026/10/04 17:42] (current) – Add deprecation banner epetriglia
Line 1: Line 1:
 ====== Проверка ваших переводов ====== ====== Проверка ваших переводов ======
  
-When an application is being translated it is interesting to see the result. This allows you to figure several points, e.g. to appreciate your labour, to check for ugly vs pretty messages, to spot mistakes, etc.+<note warning>We are deprecating the localised wiki.xfce.org pages in favour of the official documentation, which is always kept up to date. This page will be deleted on 1 November 2026. A copy will be preserved on archive.org for historical purposes.</note>
  
-PO-файлы компилируются в MO-файлы с помощью утилиты ''msgfmt''. These files are installed on the system with the **same prefix**((/usr/local, /usr, /opt, etc)) as the application.+При переводе приложений очень интересно взглянуть на результат. Это позволит вам не только восхититься плодами своего труда, но и найти неудачные переводы, ошибки, опечатки и т. п. 
 + 
 +PO-файлы компилируются в MO-файлы с помощью утилиты ''msgfmt''. Они устанавливаются в тот же **базовый каталог**((/usr/local, /usr, /opt и т. п.)), что и само приложение.
  
 ===== Теория ===== ===== Теория =====
Line 18: Line 20:
  
 <code> <code>
-msgfmt -o <APPLICATION>.mo <LANG>.po+msgfmt -o <ПРИЛОЖЕНИЕ>.mo <ЯЗЫК>.po
 </code> </code>
  
-**3. Install the MO file**+**3. Установите MO-файл**
  
 <code> <code>
-sudo cp <APPLICATION>.mo /usr/share/locale/<LANG>/LC_MESSAGES/+sudo cp <ПРИЛОЖЕНИЕ>.mo /usr/share/locale/<ЯЗЫК>/LC_MESSAGES/
 </code> </code>
  
-**4. Run the application** \\ +**4. Запустите приложение** \\ 
-NB: you can test an application in several languages by tweaking the environment variable LANG. However the locales have to be available on the system (this is particular to the underlying system you are running), otherwise the translations won't show up.+Вы можете проверить перевод приложения на несколько языков, изменяя переменную окружения LANG. Тем не менее, соответствующие языки должны быть доступны на вашей системе (их список зависит от конкретной системы), иначе переводы работать не будут.
  
-NB: you can display available locales with the command line tool "''locale -a''". To display the current locale run the command "''echo $LANG''".+Вы можете вывести список доступных языков, указав в командной строке "''locale -a''". Чтобы вывести название текущего языка, введите "''echo $LANG''".
  
 <code> <code>
-LANG=<LANG> <APPLICATION>+LANG=<ЯЗЫК> <ПРИЛОЖЕНИЕ>
 </code> </code>
  
-===== Практика =====+===== Пример =====
  
 <code> <code>
-... connect to https://translations.xfce.org/projects/p/xfburn/ and download the PO file ...+... зайдите на https://translations.xfce.org/projects/p/xfburn/ и загрузите PO-файл ...
  
 poedit xfburn.master.ru.po poedit xfburn.master.ru.po
  
-... labour labour labour ...+... выполните работы по переводу ...
  
 msgfmt xfburn.master.ru.po -o xfburn.mo msgfmt xfburn.master.ru.po -o xfburn.mo
Line 51: Line 53:
 </code> </code>
  
-Если вас не устраивает этот перевод и вы хотите попробовать новую версию...+Если вас не устраивает этот перевод, и вы хотите попробовать новую версию...
  
 <code> <code>