extract-localizable-string-plugin-xcode icon indicating copy to clipboard operation
extract-localizable-string-plugin-xcode copied to clipboard

Runs, but doesn't insert the string into the Localized.strings file

Open sanguish opened this issue 9 years ago • 5 comments

This is wonderful, except it isn't actually putting the strings into the localized.strings file.

Is this known on 7,2?

sanguish avatar Jan 04 '16 21:01 sanguish

Same here, on Xcode v7.2, after doing an extract, the string just disappear, not saved anywhere.

MagnusJohansson avatar Jan 19 '16 20:01 MagnusJohansson

I have this problem too.

achernoprudov avatar Feb 28 '16 08:02 achernoprudov

+1

cloudjanak avatar Mar 03 '16 11:03 cloudjanak

I have the same problem. Starting investigating, I saw that EditorLocalizable L199 getDefaultLocalizableFilePath returns nil

jeryRazakarison avatar Apr 06 '16 16:04 jeryRazakarison

For a temporary fix:

  • Copy the full path of your Localizable.strings
  • Open the project ExtractorLocalizableStrings downloaded from Github
  • In [EditorLocalizable getDefaultLocalizableFilePath], add return <Full path to your Localizable.strings>; at the very top of the method.
  • In [EditorLocalizable localizableFilePaths] add return @[<Full path to your Localizable.strings>];
  • Compile the project
  • Restart XCode Now, the keys should be added to the Localizable.strings.

When I have time, I will look into why these two methods can't find the file and return nil

jeryRazakarison avatar Apr 07 '16 08:04 jeryRazakarison