Questions tagged [genstrings]
29 questions
2
votes
4 answers
Unable to use command genstrings in OS X El Capitan
I am working on an iOS app using Xcode 6.4 in OS X 10.11 El Capitan (Beta 3).
Whenever I try to localise using the terminal command genstrings I get the message
genstrings: error: unable to find utility "genstrings", not a developer tool or in…

ajpallares
- 777
- 4
- 16
1
vote
0 answers
How to fix bsdthread_register error in MacOS 12.2
I have a utility for using genstrings to extract localized strings in a few sub-directies for an objective-c project like so:
#!/bin/bash
APP_SOURCES="AccessoryViews/*.m Clouds/*.m CustomStyles/*.m"
cd ~/Documents/Projects/MyProject
genstrings…

Gerrit Beuze
- 903
- 2
- 10
- 26
1
vote
1 answer
How do you access Genstrings in Xcode?
I'm currently using a pod that helps switch between languages. Part of the installation process is as follows:
To support this new i18n syntax, Localize-Swift includes custom genstrings swift and python scripts.
Copy the genstrings file (either…

SwiftyJD
- 5,257
- 7
- 41
- 92
1
vote
1 answer
genstrings does not work when setting tableName parameter in NSLocalizedString
I am getting Bad entry in file error when using genstrings command line for every call to NSLocalizedString that uses tableName parameter
See the following example when trying to generate localized strings (from Firefox-iOS)
find . -name *.swift |…

Mahmoud Adam
- 5,772
- 5
- 41
- 62
1
vote
1 answer
Why doesn't genstrings convert NSLocalizedStringFromTable entries to table.strings?
In my source code I have some lines like NSLocalizedStringFromTable(@"Info", @"en", @"Title of this view"). When I subsequently call genstrings -o en.lproj ./Classes/*.m I would not get the expected file en.strings but Localized.strings, although…

juan tendero
- 11
- 1
- 3
1
vote
2 answers
How to get all open strings from .h and .m files Xcode
I want to create excel of all open strings @"..." in .h and .m files throughout my project.
To standardise strings across platform.
Is there any tool to get strings ?
I used genstrings but it only finds localized strings.

Satyam Raikar
- 465
- 6
- 20
1
vote
3 answers
Update translation for iOS internationalization
To extract the string "marked" with NSLocalizedString in my iOS app, I use the following terminal command:
find . -name \*.m | xargs genstrings -o ro.lproj
This will basically extract all the marked strings in all the .m files and put them in the…

Nicu Surdu
- 8,172
- 9
- 68
- 108
0
votes
2 answers
How to use a language other than english, but still use NSLocalizedString with english?
I couldn't find any similar questions, so here we go:
I am working on an iOS app that for the first release will only be in french, but we plan to release an english version as well in the future. At this point, I thought it was a good idea to use…

phi
- 10,634
- 6
- 53
- 88
0
votes
4 answers
Use genstrings with a folder-structured project for localization
In an iOS Project with folders containing *.m files, similar to packages, one will have to run
genstrings -o en.lproj *.m for each folder and match the relative en.lproj path. Is there a command that will do the drill down from the root folder?

Yogev Shelly
- 1,373
- 2
- 13
- 24
0
votes
1 answer
Adding translations to (multiple) localization.strings in Xcode - an easier way?
I have written an iPhone app that has been through a few releases, and for every release I do something that doesn't feel right, but haven't been able to find a better method.
My app is translated into 16 languages, and every release adds or…

DefenestrationDay
- 3,712
- 2
- 33
- 61
0
votes
0 answers
Unable to find utility "genstrings"
I have an ios app and I now want to add a new language option.
I did localize my xibs and storyboards easily with "Localize" option at IB. But I also want to change my hardcoded strings in .m files. All sources I found says that I should use…

alicanbatur
- 2,172
- 1
- 28
- 36
0
votes
1 answer
iOS - genStrings -s not able to use replacement function
iOS has a genStrings function to help localize calls from NSLocalizedString (and related functions) to a output file of key value pairs for translation.
take a look at my .h file :
#import
@interface ViewController :…

j2emanue
- 60,549
- 65
- 286
- 456
0
votes
1 answer
removing strings created with genstrings
I started to localize my application. I used genstrings to create the localizable.strings. This worked fine. Now I have worked on the app and have removed a couple of the strings and replaced them with icons. Is there a way to tell genstrings to…

Joseph
- 9,171
- 8
- 41
- 67
0
votes
1 answer
How to use terminal for working with xCode Command Line Tools?
Context: I have installed the Command Line Tools separately as the conventional method of
"xCode->Preferences->Downloads->Components->Command Line Tools->Install" didn't work for me.
Purpose: I need to implement internationalization/localization on…

Kushal Ashok
- 554
- 1
- 8
- 15