Comments (6)
Originally posted by Oscar Manuel Gómez Senovilla:
Created [attachment 42](http://bugs.locamotion.org/attachment.cgi?id=42)
File described in comment 1
This file, when converted to po with moz2po, results in a zero size file. Other
properties files seem ok
from translate.
Do you have the associated english .properties file. We need that to convert to PO.
Do you get any errors during convertsion?
—errorlevel=traceback
from translate.
The error was as follows:
/mnt/zuza/translate.org.za/translate.sourceforge.net/src/translate/misc/quote.py:257
elif s >= len(source):
E raise ValueError(“\ at end of string”)
> ```
> ValueError: \ at end of string
> ```
The line causing it was:
EnterLinkText=Introduzca el texto a mostrar para el enlace:
I’ve added a test in storage/test_properties.py
from translate.
This is fixed with the commit to properties.py to allow escapes at the end of
the string.
Oscar, can you verify?
from translate.
Originally posted by Oscar Manuel Gómez Senovilla:
I get this with the new file:
moz2po: warning: Error processing: input
l10n/es-ES/editor/ui/chrome/composer/editor.properties, output
po/es-ES/editor/ui/chrome/composer/editor.properties.po, template
l10n/en-US/editor/ui/chrome/composer/editor.properties: \ at end of string
Maybe it’s the same, but still having trouble
from translate.
Tested this on the supplied file with templates from Mozilla 1.5:
moz2po -t editor-template.properties -i editor.properties -o editor.properties.po
Creates a valid PO file with items correctly merged. \ at end of line is now
escaped:
#: EnterLinkText
msgid “Enter text to display for the link:”
msgstr “Introduzca el texto a mostrar para el enlace\:”
from translate.
Related Issues (20)
- Unable to use CSV as monolingual translation format
- phply appears to be unmaintained since 2018 HOT 11
- Outdated footer on the documentation website
- Plural tags and counts for i18next HOT 5
- Support FormatJS (aka React-Intl) default format
- MJML support
- rc2po gives no error but empty file
- rc2po missing dependencies on Ubuntu 22.04.2 HOT 3
- rc2po not mentionned in the README HOT 1
- rc2po documentation of charset conflicts with po2rc
- rc2po annoyed by pragma code_page that change the encoding interpretation HOT 6
- rc2po adds 2 extra lines when the msg contains one '\n' HOT 1
- Crash in parsing gotext file with complex id HOT 1
- Crash in gotext plurals parsing HOT 1
- Broken i18next v3 plural rules in multiple languages HOT 5
- rc2po fills the wrong keys HOT 1
- JUnit reporting support for pocount HOT 1
- Supporting source string descriptions in yaml files HOT 1
- Single whitespace is not preserved while enclosed in double quotes on Android HOT 2
- Plural issues on Android due to update to CLDR 41 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from translate.