266 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
18
views
Getting issue while print in xcode debuger with [ PO ]
(lldb) po companyPageProfileVM.segmentIndex
error: expression failed to parse:
error: virtual filesystem overlay file '/Users/imac/Library/Developer/Xcode/DerivedData/MyBridge-...
2
votes
1
answer
131
views
Find all msgstr which are either not empty or multilines using regexp in a po file
In a .po file, what regexp could I use to find out all msgstr lines being either
msgstr "some text"
or which spread on several lines:
msgstr ""
"some multiline text"
&...
0
votes
1
answer
184
views
Swap source and target language in PO file (gettext translation)
Reading the headline, you will ask "why on Earth would you want to do this?"... But this must be a very common challenge, and I am surprised that there seem to be no good solutions out there....
1
vote
1
answer
340
views
Add .po and .mo format to WordPress
I needed to add some formats such as ico and svg in a part of the WordPress theme that I designed, which I did by placing the following code in the functions.php file:
function upload( $mime_types ) {
...
1
vote
1
answer
75
views
Upload the translation file from the template in WordPress (.mo and .po)
I want to put a function in the functions.php file so that when the user activates the template, all the files with .mo and .po extensions are copied to the wp-content\languages\themes path.
For this ...
0
votes
1
answer
229
views
Prevent prepopulation of msgstr values in new PO files generated via msginit program of gettext
By default, when generating a PO file using the msginit command of the gettext package according to their source, the
msgstr values are prepopulated with the corresponding msgid values, so you get sth ...
3
votes
1
answer
123
views
Does PO file format support negative indexes?
I have a source format that has negative indexes:
@-1002= "What should be done with all components that are NOT YET installed?\n[I]nstall them, [S]kip them, [A]sk about each one?"
@-1003= &...
0
votes
1
answer
109
views
.po and .mo files UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 7: ordinal not in range(128)
I have a Bot which im trying to make multilingual. Now when i try to run the command for the bot i get
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 7: ordinal not in range(128)
...
1
vote
1
answer
509
views
Is there a better way to assign msgid in django translations?
I am currently relying on django translations and I am curious to know if there is a better way to pick msgid for translations rather than the usual approach.
For instance:
In order to mark something ...
1
vote
1
answer
353
views
How to use vuei18n-po?
i can't find a tutorial how to use package vuei18n-po in vue main.ts.
Yts documentation is small, and not well descriped.
https://www.npmjs.com/package/vuei18n-po.
I have never use something like ...
3
votes
1
answer
2k
views
How to open a MO gnu gettext file?
I am reviewing how to address multi-language support for documentation and messaging with a library. I found that the MASS package uses such support, and I wanted to review the how and why. For ...
1
vote
2
answers
1k
views
How to pass parameter to localization string in ASP.NET core MVC .NET 6?
I am using Portable Object Localization in my ASP.NET MVC app.
I need to pass a parameter to a translation string
e.g.
msgid "The {0} field is required"
msgstr[0] "موجودیت {0} لازمی ...
-3
votes
1
answer
103
views
Search for all po files in a directory and its subdirectories and create a Hashmap containing the filepaths as value and its directory as key
I want to search for all .po files in a directory and add them to a HashMap.
My directories looks like the following:
dir1\<any number of subdirs>\*_en_*.po
*_it_*....
6
votes
3
answers
7k
views
LLDB po complain error: expression failed to parse: error: Couldn't realize type of self
It's a iOS application using cocoapods. Xcode 14 and Xcode 13.4.1 behavior same. I am using a static lib.
With Xcode 14 new lldb cmd swift-healthcheck, print
"SwiftASTContextForExpressions::...
0
votes
1
answer
502
views
Export Python variable translations not working
I'm developing a custom module in Odoo 13 to generate a personalized XMLS report, and for this I'm using Base Report XLSX from OCA. The issue is that when generating the PO document for the ...