Questions tagged [po]

PO files are the format of the GNU gettext translation files.

PO files are the format of the GNU gettext translation files.

A PO (Portable Objects) file is made up of many entries, each entry holding the relation between an original untranslated string and its corresponding translation. All entries in a given PO file usually pertain to a single project, and all translations are expressed in a single target language.

They usually have to be compiled in MO (Machine Object) file to be used in applications.

263 questions
0
votes
1 answer

How to use HTML markups in .po translation files using (@lingui/react)

In my React code I have: In .po file I have: msgid "hello" msgstr "Hello world! " But translation does not work with . Is there a way I can make this text bold? Thanks
David
  • 27
  • 3
0
votes
2 answers

use regexp to search function calls in code

i try to make .mo files from my sources in php by finding "t()" function calls, i know that one better way is using regex functions like preg_match or something, but i'm not the better creating regular expresions, any help? (and sorry for my…
DavidB
  • 3
  • 1
0
votes
1 answer

RegEx: Replace lines that start with "msgctxt" with content that is in between quotation marks of those strings

I have several big files with several entries like these: msgctxt "#. client error message" msgctxt "#. 0 = ID" #: Some more text msgid "" "Could not activate\n" "Connection lost?" msgstr "" "Some other text" "Even more other text" Now, ideally, I…
0
votes
0 answers

Django translation files substitute msgid with another translation

I have a site that should be localized in different languages: English, French and Russian. In russian po I have the following: msgid "An error has occurred. Please reload the page." msgstr "Произошла ошибка. Пожалуйста, перезагрузите страницу." In…
Paul R
  • 2,631
  • 3
  • 38
  • 72
0
votes
2 answers

Extract single translation from gettext .po file from shell

As a build step of my C++ application (using CMake as a build system) I need to create some template files that should include localized strings. The strings are available from translators already in the form of gettext .po files (the same that will…
Patrick Storz
  • 425
  • 4
  • 14
0
votes
1 answer

PHP gettext returns input as result in Homestead

In a project of our company we use gettext to translate text. This has been working for several years, but now I am trying to run the project in Homestead, everything works fine except gettext. When use for example gettext('input_string') it returns…
Bart Bergmans
  • 4,061
  • 3
  • 28
  • 56
0
votes
1 answer

How to refere to .po/.pot files in website code?

I want to translate my page with po files. Unfortunately I don't know how should I refere to .po file in the code. Website have been written in php/html with wordpress commands.
King
  • 1
0
votes
1 answer

PO files translations: going backwords, from msgstr to msgid?

I'm in need to start from the msgstr to retrieve the msgid. The reason is that I've got several translations, all EN to SOME OTHER LANG, but now in the current installation I need to go back from SOME OTHER LANG to EN. Note that I'm also working in…
Luca Reghellin
  • 7,426
  • 12
  • 73
  • 118
0
votes
0 answers

How to set localization in Cake PHP 3.5 at runtime?

I try to use this: https://book.cakephp.org/3.0/en/core-libraries/internationalization-and-localization.html But I think this code is not enough for working fine: use Cake\I18n\I18n; //Prior to 3.5 use I18n::locale() I18n::setLocale('de_DE'); What…
0
votes
1 answer

Div will not expand correctly with content?

I have my body div within the body of my page set to body_content. I have my min-height set to 100%. Within this div, I have the main_content div which acts as a wrapper for the content. Also set to min-height of 100%. However, regardless of how I…
0
votes
3 answers

Can I translte a Wordpress PO file online?

Hi Can I just translate my theme po file online and save it our do i have to compile it to work? Do you know how i mean? Regards
0
votes
1 answer

AutoCam position unity 3D

I'm stuck with changing position of the MultipurposeCameraRig (imported from unity packages) ! here is the line in script of the camera position I want it up (you can see the problem in the photo below) here is the line code of camera position //…
0
votes
2 answers

I created a hash to replace words from one .po to another file but I don't know how to write the end file

I have 2 files, origin.txt and end.txt Origin.txt have text like this: msgid "Page not found" msgstr "Page not found translation" msgid "Latest Listings" msgstr "Latest Listings translation" end.txt hasn't translations msgid "Page not found" msgstr…
coyr
  • 659
  • 6
  • 9
0
votes
2 answers

Wordpress in different languages

I am currently working on a wordpress website in Czech language, I ran into a problem. Most of the website is in Czech. Its running good. I needed a plugin that has users and accounts that they could take care of. I started messing around with…
Pavel
  • 11
  • 1
  • 8
0
votes
1 answer

PoEdit, how to discard translations not being used?

I need to know how to mark or delete the translations not being use by the project. Is there a way to do this? I have read about PoEdit, and I can't find anything.
avi1074
  • 23
  • 4