liquidsoul / localizationconverter Goto Github PK
View Code? Open in Web Editor NEWA command-line tool to convert mobile localization files
License: MIT License
A command-line tool to convert mobile localization files
License: MIT License
Hi,
To prevent duplication, I would like to inform you that attranslate
is a modern rewrite of LocalizationConverter
: https://github.com/fkirc/attranslate
Of course, it is still fine to use LocalizationConverter
, but the maintenance situation seems unclear.
There must be a way to know which version of the tool is installed.
To do this, let's add a --version
option which should print the actual version of the tool.
One issue is that there is no version information in the code base right now. The only version information is the release tag added to the git repository and referenced in the brew formula
Code coverage is generated but it seems like it cannot be gathered by tools like codecov or even slather.
This may be because this project is a OS X Command Line Tool and that it required me to add all the source files to the Unit test target.
I looked at another swift command-line tool SwiftLint to see how they have set up the project and apparently, it's an OS X App from which they extract the executable to use it from the command line.
Maybe it the way to go, maybe not...
Android strings resource can contain format tags <b>
, <i>
and <u>
.
The current implementation fails when one of this tag is used.
Example of strings.xml
file:
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="hello.world">Hello <b><u>world</u></b>!</string>
</string>
</resources>
README
....
...
...
...
I tried to use swiftgen and it only parses the Localizable.strings
file without considering the stringsdict
file. However, the LocalizationConverter
do not duplicate the plural keys in both file.
Maybe it should have an option to do that, like --keep-plural-keys
?
Converter does not escape "
characters when formatting Localizable.strings
files.
Note that there is no error but that the Localizable.strings
files cannot be parsed by Xcode when used.
You can check this by running plutil
on the file.
Example of incorrectly converted strings.xml
file:
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="double_quoted_value">Click "This"</string>
</resources>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.