Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
lhc70000 committed Jan 1, 2018
0 parents commit 1e28e6e
Showing 16 changed files with 2,624 additions and 0 deletions.
100 changes: 100 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# Xcode
#
# gitignore contributors: remember to update macOS.gitignore, Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## macOS

*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xcuserstate

## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output

other/MPV*.swift
psd/
temp/

# FileMerge backup
*.orig
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## IINA Translation Utility

Update `.strings` files with minimal effort.

This application is expected to be used only for IINA.

## Usage

**Load The Project**

1. Launch the application. <kbd>⌘O</kbd> and open the `iina.xcodeproj` file.
2. Now the project should be loaded. Two popup buttons will show up in the toolbar; the left one indicates the current language, and the right one is the base language to be compared to. Select your language for the left popup button.
3. All strings files should be listed in the sidebar, with an indicator showing how many errors are detected in the file.

**Add Translations**

1. Double click a row to edit the translation.
2. Press <kbd>Enter</kbd> to commit the change and save the file.
3. Press <kbd>⌘Enter</kbd> to all above and continue to the next key.
4. Click "Next issue" to jump to the next error.
5. Right click on a file and choose "reload all" to reload the file from disk.
6. Right click on a translation to update all keys with the same base translation. This is especially useful for some words like "Save" and "Cancel".

**WARNING**

1. This application is not bug-free.
2. So backup/commit the project before running it. `git checkout -- /path/to/file` could recover a single file.
3. Keys that no longer exist in the base strings/xib file will be skipped during saving. Open an issue in case of a valid key got deleted.
Loading

0 comments on commit 1e28e6e

Please sign in to comment.