Git Product home page Git Product logo

linyu92 / mygithub Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 9.0 140 KB

this project mainly contain a python script for better internationalization of storyboard. As we know , ibtools can genstrings for a storyboard file ,but it will overwrite the existing string which you have done the internationlization. The project will teach you how to simplify your step and work to add translated continuously

Objective-C 41.86% Python 58.14%

mygithub's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mygithub's Issues

楼主,问题请教

python ${SRCROOT}/${TARGET_NAME}/RunScript/AutoGenStrings.py ${SRCROOT}/${TARGET_NAME}
这一串执行代码中${SRCROOT}是不是表示的main.storyboard的路径?如果我有多个storyboard,是不是要切换路径?

脚本运行报错了,请大神指教

init with Main.storyboard

    • genstrings Main.storyboard successfully
    • dealing with /Users/laycept/Desktop/IOS-doctor/ZQProject/zh-Hans.lproj/Main.strings
      utf-16/UCS-2,big endian
      Traceback (most recent call last):
      File "/Users/laycept/Desktop/IOS-doctor/ZQProject/RunScript/AutoGenStrings.py", line 188, in
      main()
      File "/Users/laycept/Desktop/IOS-doctor/ZQProject/RunScript/AutoGenStrings.py", line 178, in main
      compareWithFilePath(tempFile_Path,targetPath)
      File "/Users/laycept/Desktop/IOS-doctor/ZQProject/RunScript/AutoGenStrings.py", line 91, in compareWithFilePath
      anotationString = getAnotationOfString(newString_txt,linestr)
      File "/Users/laycept/Desktop/IOS-doctor/ZQProject/RunScript/AutoGenStrings.py", line 73, in getAnotationOfString
      anotationMatch = re.search(anotationRegex,string_txt)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", line 146, in search
      return _compile(pattern, flags).search(string)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", line 251, in _compile
      raise error, v # invalid expression
      sre_constants.error: multiple repeat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.