Giter Site home page Giter Site logo

Comments (16)

SpencerMichaels avatar SpencerMichaels commented on July 20, 2024 8

This is still a problem in the latest version; it makes synx totally unusable for apps with localization.

from synx.

tylermilner avatar tylermilner commented on July 20, 2024 4

This issue is still present in the current version. Unfortunately, I didn't know about this before an app update went live and it broke localization in my app for thousands of our Spanish and French users. While it's nice that there is a work around to get things working again, Synx shouldn't be doing this in the first place.

from synx.

MrNickBarker avatar MrNickBarker commented on July 20, 2024 3

We fixed this in our project like this:

  1. Select the storyboard/xib
  2. Un-tick the languages in the localisation panel that have been converted from .strings to .storyboard/.xib. Make sure that the "Delete localized resources from disk" is not checked in the popup.
  3. In Finder open the language project folder (de.lproj, fr.lproj or whatever) and rename the .storyboard/.xib files back to .strings
  4. Back in Xcode select the storyboard/xib and add re-add the localisations. Make sure to select the option to use the existing file in the popup.

from synx.

eugenpirogoff avatar eugenpirogoff commented on July 20, 2024 3

@numen31337

a friendly advice: cool down, its an FOSS project. take it or leave it. no need for harsh words here. and yes I ran into the same issue.

from synx.

erwald avatar erwald commented on July 20, 2024

I have the same issue, and am, surprisingly, having trouble repairing it manually. If I rename the files back to .strings, Xcode won't let me insert them to the correct place in the project, and, moreover, it won't let me remove any references to the deleted files.

How did you go about fixing this @lazarev? It took me some days before I noticed, so I would rather not return to a previous commit.

Edit: Bah, never mind – I figured it out.

from synx.

isair avatar isair commented on July 20, 2024

+1

from synx.

Mazyod avatar Mazyod commented on July 20, 2024

@erwald Just a thought: Did you check the encoding of the strings file? It may have changed in the process to something other than the required encoding UTF-16 (I think it's required to be that, at least).

from synx.

erwald avatar erwald commented on July 20, 2024

@Mazyod Do you mean in order to re-add them? I think it's UTF-8 now, but it also works now again. I don't remember exactly what I had to do, but I think it was just another half an hour of fiddling in Xcode that did it.

from synx.

Mazyod avatar Mazyod commented on July 20, 2024

@erwald Oh, got it. Yeah, I thought it was a requirement, but it seems to just be a best practice, it is not actually enforced. From Apple docs:

Note: It is recommended that you save strings files using the UTF-16 encoding, which is the default encoding for standard strings files.

from synx.

radex avatar radex commented on July 20, 2024

Ah, same issue here. Does the fix in #77 work well?

from synx.

eugenpirogoff avatar eugenpirogoff commented on July 20, 2024

Same issue here.

from synx.

beseder42 avatar beseder42 commented on July 20, 2024

Any progress possible on this? Still not useable on localized Projects!

from synx.

pschneider avatar pschneider commented on July 20, 2024

@MrNickBarker 's solution worked for us, too. Thanks!

from synx.

NikKovIos avatar NikKovIos commented on July 20, 2024

MrNickBarker's answer works, but it's poor that the issue still presents.

from synx.

numen31337 avatar numen31337 commented on July 20, 2024

Same issue here, noticed it too late and already done a lot of changes in the project to just reverse a commit. This was the last time for us when we were using this utility. This is unacceptable for the apps that are in production.

from synx.

seasox avatar seasox commented on July 20, 2024

I ran into the same issue, was able to fix it using the diff of my app's project.pbxproj. Would be great to see a fix in an upcoming release.

from synx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.