Skip to content

Collection of tools to easily find strings to translate in Objective-C source code

Notifications You must be signed in to change notification settings

dvkch/SimpleTranslationTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleTranslationTools

Collection of tools to easily find strings to translate in Objective-C source code.

find_raw_string_literals.rb

Ruby script that will (or at least should) find string literals in Objective-C source code and print an Xcode-compatible log line to remind you to translate it.

Screenshot

SYTranslation.h

Macros to replace you string literals and describe them either as to be translated or as constants

#define $(text)  NSLocalizedString(@text, @text)
#define $$(text) @text

// This string will be translated at runtime
NSString *text = $("Hello");

// This string will stay the same
NSString *key = $$("some_key");

About

Collection of tools to easily find strings to translate in Objective-C source code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published