brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
| #! /usr/bin/python | |
| import argparse | |
| import os.path | |
| import glob | |
| parser = argparse.ArgumentParser( | |
| formatter_class=argparse.RawDescriptionHelpFormatter, | |
| description='''\ | |
| Replacing values in arrays.xml with @string/ links. Generates three new files for each locale: |
| #!/usr/bin/ruby | |
| # based on https://github.com/tmurakam/cashflow/blob/0a01ac9e0350dfb04979986444244f8daf4cb5a8/android/convertStrings.rb | |
| # support comments and Converter such as "%@", "%d", "%0.1f"... | |
| # in your directory : ./main.rb Localizable.strings | |
| file = File.open("strings.xml", "w"); | |
| file.puts "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | |
| file.puts "<resources>" |
| #!/usr/bin/env ruby | |
| # gist: https://gist.github.com/3217498 | |
| # This script can be called from an Xcode 'Run Script' build phase at the | |
| # beginning of the build process, like this: | |
| # | |
| # ${PROJECT_DIR}/LocalizeStringsFromAndroid.rb ${PROJECT_NAME} | |
| # | |
| # This script should be placed in the same directory as your .xcodeproj |
| #!/bin/bash | |
| sp="/-\|" | |
| sc=0 | |
| spin() { | |
| printf "\b${sp:sc++:1}" | |
| ((sc==${#sp})) && sc=0 | |
| } | |
| endspin() { | |
| printf "\r" | |
| } |
from :http://www.entropy.ch/blog/Developer/2010/04/15/Git-diff-for-Localizable-strings-Files.html
First, add this to the project’s .git/info/attributes file:
*.strings diff=localizablestrings
Unfortunately you do have to add it to every project, there doesn’t seem to be a global attributes configuration file
Second, add this to your ~/.gitconfig file: