microsoft / microsoft/LocalizedStringKit
What is the use-case for this library compared to Xcode - Export for Localization and import?
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 293
- Fork
- 12
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
I am trying to better understand the use-case for this library compared to the standard localisation workflow in Xcode.
In the readme you say:
LocalizedStringKit is a tool that lets you write English strings directly into your source code and generate the required .strings files later. No more manually managing string keys or remembering to add them to the strings file later. All you do is change:
label.text = NSLocalizedString("TERMS_SCREEN_MAIN_HEADER", "Comment here...")
...
If you use NSLocalizedString, you can write English strings directly into the source code as the key parameter (in the same way as with the replacement function in this library). Then to generate the strings files for the other languages, in Xcode,
- Select the project in the sidebar
- Select, menu item Editor -> Export for Localization
- Add the target translations to the resulting XLIFF
- Then import again with Editor -> Import Localisation
Result: Xcode will create the strings files and add them to the project
Furthermore, If you alternatively use keys such as NSLocalizedString("my.string.a", ..), you can export the development language, in the same way as described above, and import to generate the strings file for the development language.
Is this library for when you don't use Xcode, or don't want to use the xliff-based workflow (for some reason)?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Xem lại phần mô tả trong README cùng với workflow Xcode Editor → Export for Localization và Import Localization được mô tả trong issue. Làm rõ trường hợp sử dụng mà thư viện hướng đến và liệu thư viện có nhắm đến các dự án không sử dụng Xcode hoặc workflow XLIFF hay không; hoàn thành khi README so sánh rõ ràng các phương pháp này.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- documentation, localization
- Loại issue
- Tài liệu
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100