Comments (13)
Thank you for reporting the issue @superandrew. I can see a few potential problems from your screenshots:
- Your
nowr-LaunchScreen.storyboard
is not localized in Italian (nowr-LaunchScreen.strings
is missing init.lproj
LoginViewController.xib
is not String-localized, meaning init.lproj
there should be aLoginViewController.strings
file instead of a .xib file- Same is true for
SignupViewController.xib
Please make sure you always localize all localizable files in all the languages you support in your project. Otherwise BartyCrouch might not work as expected. If you don't need to localize a Storyboard (like the nowr-LaunchScreen) then you should simply unlocalize the screen entirely so it doesn't appear even in Base.lproj
.
from bartycrouch.
I'm closing this due to inactivity.
from bartycrouch.
You should add that to the documentation imo (the fact that if we don't localize we need the storyboard in dev language not base langauge).
from bartycrouch.
@tirrorex I'm not sure what you mean, but feel free to post a PR with your improvement in the README. :)
from bartycrouch.
"Please make sure you always localize all localizable files in all the languages you support in your project. Otherwise BartyCrouch might not work as expected. If you don't need to localize a Storyboard (like the nowr-LaunchScreen) then you should simply unlocalize the screen entirely so it doesn't appear even in Base.lproj."
This should be in the documentation
from bartycrouch.
Thank you @tirrorex for the text. That's not exactly a PR but I've included it into the README myself nearly as is (just removed the "nowr-" in front of "LaunchScreen") via 3b5b084. 🙂
from bartycrouch.
Alright, I know this is closed and old, but a nice addition would be to generate the file that is missing. I know, PRs are always welcome. :)
from bartycrouch.
Alright, reopening. ;)
from bartycrouch.
Is this still an issue with version 4? I feel like I tackled this in #114. So closing for now until someone reports otherwise.
from bartycrouch.
I'm seeing this currently. If you go to the base project and remove a localization, and bartycrouch runs the build script outlined in the documentation, it still tries to find that localization. Not sure why that is but it would be awesome if someone could fix this!
from bartycrouch.
@thejeff77 Thank you for reporting this. Can you please give me some further information to understand the problem better:
- What do you mean by "go to the base project"? Do you mean the
Base.lproj
directory? Or do you mean a target in Xcode where you remove a language? - How do you know that BartyCrouch is trying to find that localization still? Can you try to run the two commands from the build script manually and give me the full output?
from bartycrouch.
@Jeehut Hey there, thanks for the quick reply!
I'll keep this notification email unread and reply again with error messages next time I enable the bartycrouch update in my build scripts.
For now, to unblock the story, I'll give you what I can right now:
What do you mean by "go to the base project"? -> Your second answer is correct: "... a target in Xcode where you remove a language"
Yeah its the top level target with the xcode icon on it - where you set supported languages for the whole project.
How do you know that BartyCrouch is trying to find that localization still?
After clearing all Derived Data, clearing the Project Data, restarting XCode, rebuilding, deleting & re-installing the app, I still received an error about the removed language not found by bartycrouch from the "bartycrouch update -x" command in the run script phase of the build.
Can you try to run the two commands from the build script manually and give me the full output?
Yes. Stay tuned. For now you should have enough info to see if it is reproducible and unblock the bug. I'm curious if you see the same behavior!
Thanks, and let me know if you have any additional questions.
from bartycrouch.
Turns out removing that localization from the main target doesn't delete the folder.
If the folder isn't deleted, bartycrouch won't ignore it. In my case it was vi.lproj
Might be something to take a look at? I.E. check the target languages instead of the physical file system - as the master of the languages is the target, not the filesystem.
from bartycrouch.
Related Issues (20)
- Can't build project after upgrade bartycrouch to 4.8.0
- Explicit folders on the `codePaths` argument shouldn't be ignored later. HOT 5
- NSLocationTemporaryUsageDescriptionDictionary translations gets removed HOT 6
- Cocoapods executable doesn't work on x86 machines HOT 19
- Embed lib_InternalSwiftSyntaxParser.dylib into package HOT 3
- error: the target 'SwiftSyntax' in product 'SwiftSyntax' contains unsafe build flags HOT 4
- Support for none default Xcode install path HOT 1
- Add new line on every translation after normalize HOT 2
- Translate successful but no output for Storyboards Main.string file HOT 3
- BartyCrouch with SwiftGen creates empty string values HOT 2
- [Feat] Autogenerate `.strings` files HOT 3
- `overrideComments` option doesn't work HOT 4
- [Bug] CI failed for version 4.12.0 HOT 2
- [Bug] update.code with additive=false and code in multiple parent directories looses strings HOT 5
- [Feat] Tip: How to localize LocalizedStringResource types with bartycrouch HOT 3
- [Feat] Support for modular application HOT 4
- [Bug] Translation Microya.ApiError<Microya.EmptyBodyResponse> error 3 HOT 2
- [Bug] PodSpec does not support iOS anymore HOT 7
- [Feat] Extract localizable Strings from SwiftUI Text HOT 1
- [Question/Bug] : .bartycrouch.toml permission errors on dependent test build HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bartycrouch.