mohakapt / Stringz

A lightweight and powerful editor for localizing iOS, macOS, tvOS, and watchOS applications.
https://github.com/mohakapt/Stringz
GNU General Public License v3.0
951 stars 46 forks source link

Error on saving file with symbolic link #4

Closed nuomi1 closed 3 years ago

nuomi1 commented 3 years ago

I use symbolic link in Localizable.strings such as ../../../xxx-l10n/Localizable/zh-Hans.lproj/Localizable.strings, but Stringz overwrites the file on saving.

mohakapt commented 3 years ago

I couldn't reproduce the issue, It would be super helpful If you can create a sample app with a "soft link" so i can use it for debug.

nuomi1 commented 3 years ago

I couldn't reproduce the issue, It would be super helpful If you can create a sample app with a "soft link" so i can use it for debug.

https://github.com/nuomi1/Timer/blob/feature/stringz-test/Timer/Base.lproj/Localizable.strings -> real file https://github.com/nuomi1/Timer/blob/feature/stringz-test/Timer/zh-Hans.lproj/Localizable.strings -> symbolic link

https://github.com/nuomi1/Timer/tree/feature/stringz-test

nuomi1 commented 3 years ago

Sorry, it's symbolic link.

mohakapt commented 3 years ago

Thanks for creating the example app, I will use it to debug Stringz and hopefully fix the issue.

mohakapt commented 3 years ago

I just released a fix for this bug in the new version (v0.4.2). Please check it out.

nuomi1 commented 3 years ago

I just released a fix for this bug in the new version (v0.4.2). Please check it out.

It's OK, thanks.