moathothman / localization102 Goto Github PK
View Code? Open in Web Editor NEWLocalization tutorial in swift focusing on the RTL/TLR issue and changing the language without restarting
License: MIT License
Localization tutorial in swift focusing on the RTL/TLR issue and changing the language without restarting
License: MIT License
Hi MoathOthman,
It is possible to change the hole application when click on one button? and one more thing i have multiple Localization. please let me know.
Thnaks.
I am using this library for my project and this is really good. I am using Google Place Autocomplete API, when I switch language the google place API search result not affected without restart the app, others are working perfectly. Is there any way to do that??
It's working nice on project. But when I call out side project like UIImagePickerController to pick a photo, or capture.
All content title is key, can't mapping to real value. example: "CHOOSE_PHOTO_BUTTON" ...
iphone 6s, ios 10.1
On changing Language Buttons in the exchanging their respective position.
like if it is in left he left changing language it is in right
i have use this library in my project this really good lib. for language change with animation .
i have one problem with textField text field data not display in some case.
here i have one text field and text is not display .
Localizer.swift
/// Exchange the implementation of two methods of the same Class
func MethodSwizzleGivenClassName(cls: AnyClass, originalSelector: Selector, overrideSelector: Selector) {
let origMethod: Method = class_getInstanceMethod(cls, originalSelector)!
let overrideMethod: Method = class_getInstanceMethod(cls, overrideSelector)!
if (class_addMethod(cls, originalSelector, method_getImplementation(overrideMethod), method_getTypeEncoding(overrideMethod))) {
class_replaceMethod(cls, overrideSelector, method_getImplementation(origMethod), method_getTypeEncoding(origMethod))
} else {
//method_exchangeImplementations(origMethod, overrideMethod)
}
}
after comment this method_exchangeImplementations line it is working fine . can you suggest alternative for this code ? or explain me what is the roll of this method ?
Thank you for this lib.
I have the following issue:
when activating following line of code
MethodSwizzleGivenClassName(cls: UILabel.self, originalSelector: #selector(UILabel.layoutSubviews), overrideSelector: #selector(UILabel.cstmlayoutSubviews))
from DoTheMagic method, then any label with .textAlignment = .center
will lose its alignment, any help?
Hi
Hello
In xcode version 8 , swift 3 , can not change to arabic RTL
Thank you ver much
do you have any idea about scroll view ?
I've downloaded Zip file and ran the project. At first i thought it is working properly but it has some issues like UIImage is not showing sometimes after changing language.Some UILabels are missing.
Hi,
I am Ashutos. I am having some doubts regarding my app is having both languages now I want to change my default language to Arabic, For now, it 1st time showing in English but how I can change that when somebody changes from setting then only it needs to change to English else not. Please help me to fix this issue thanks...
when the language is Persian and I change it to Persian again, the static labels(label that translated in storyboardName.string not in localizable.string) change to english. when I change it to Persian again, it changed to Persian.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.