Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Russian msg on grub cntdw. en.mo+ others .mo files seem to have russian in /boot/grub2/local

  1. #11
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Russian msg on grub cntdw. en.mo+ others .mo files seem to haverussian in /boot/grub2/local

    On 2014-09-23 13:36, metalized wrote:

    > it broke again. I just wonder if there is a way to just download the
    > correct .mo files and replace the ones with the Cyrillic letters.


    It is simple to create yourself the file you need (one), but you need
    the corresponding sources (the .pot file, or missing that, a correct .po
    file for any language).

    "info gettext" for further info.


    You could use "msgunfmt" to create a .po file out of a .mo file (any
    one). You edit it - use emacs or mcedit, they understand the syntax (the
    full blown "lokalize" is overkill for this task, IMO). There is first a
    header block; you can modify it, but do not remove fields. You should at
    least make sure the "Language" header line is correct. After that, you
    find the message section similar to this:

    [CODE]
    msgid " total memory: %d KiB\n"
    msgstr " pamięć całkowita: %d KiB\n"

    msgid " No preferred mode available\n"
    msgstr " Tryb preferowany niedostępny\n"

    msgid " Preferred mode: %ux%u\n"
    msgstr " Preferowany tryb: %ux%u\n"
    [CODE]


    Do not touch any "msgid"! Just edit carefully all the "msgstr" like this:


    [CODE]
    msgid " total memory: %d KiB\n"
    msgstr ""

    msgid " No preferred mode available\n"
    msgstr ""

    msgid " Preferred mode: %ux%u\n"
    msgstr ""
    [CODE]


    or like this:


    [CODE]
    #, fuzzy
    msgid " total memory: %d KiB\n"
    msgstr " pamięć całkowita: %d KiB\n"

    #, fuzzy
    msgid " No preferred mode available\n"
    msgstr " Tryb preferowany niedostępny\n"

    #, fuzzy
    msgid " Preferred mode: %ux%u\n"
    msgstr " Preferowany tryb: %ux%u\n"
    [CODE]


    Any of that nullifies the translation, forcing the program to use its
    internal strings. Then you have to create back the .mo file for your
    language, using "msgfmt". make sure to choose the correct name -
    language and country codes are listed in the "info gettext" manual.


    If that fails, you have to use the source tree (the .pot file
    specially), and maybe a partial build ("make po", perhaps).

    HTH.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  2. #12
    Join Date
    Sep 2012
    Posts
    5,128

    Default Re: Russian msg on grub cntdw. en.mo+ others .mo files seem to have russian in /boot/grub2/local

    Quote Originally Posted by metalized View Post
    It had worked for a while, but after an upgrade it broke again.
    Please post your grub.cfg.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •