Skip to content

dvkch/SimpleTranslationTools

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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