cocoanetics / dtlocalizablestringscanner Goto Github PK
View Code? Open in Web Editor NEWAn open source substitute for Apple's genstrings which can be integrated in Apps.
License: BSD 2-Clause "Simplified" License
An open source substitute for Apple's genstrings which can be integrated in Apps.
License: BSD 2-Clause "Simplified" License
If we can support this, I think that would be better. (comments may not be used)
If the second parameter of NSLocalizedString(key, comment) would be optional then this would also support people using custom MacrosLike ODLocalizedString(key). The comment would be assumed to be nil.
Should the command line tool be added to Homebrew?
Description:
It seems Localized.strings must never contain a row like this:
"" = "";
If it does, the localization tables will mess up, and the application will complain it does not find strings in Foundation framework.
App warning looks like this:
Localizable string "(A Document Being Saved By %@)" not found in strings table "Document" of bundle CFBundle 0x12e508f60 </System/Library/Frameworks/Foundation.framework>
(need to have -NSShowNonLocalizedStrings YES as startup argument to enable the warning)
The original genstrings tool will not include empty strings, but output a warning.
DTLocalizableStringScanner unfortunately does include the empty string, and thus, the output is broken.
Proposed fix:
Make sure empty strings are never included in the output.
This can be done by adding:
if([key compare:@""""] == NSOrderedSame) {
continue;
}
in the for-loop in [DTLocalizableStringTable stringRepresentationWithEncoding], but there are probably better ways to do it :)
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.