IOS APP internationalized file management method based on Python

A file management method and file technology, applied in the field of software development, can solve the problems of complicated operation and low efficiency, and achieve the effects of reducing time cost, improving development efficiency, and facilitating translation and management.

Active Publication Date: 2019-12-27
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a Python-based iOS APP internationalization file management method, which is used to solve the problems of low efficiency and cumbersome operation caused by manual import and export in iOS internationalization file management in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • IOS APP internationalized file management method based on Python
  • IOS APP internationalized file management method based on Python

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] combined with figure 1 with figure 2 As shown, a Python-based iOS APP internationalization file management method, including quickly exporting iOS development strings format files to Excel files required by translators, and quickly importing Excel files into strings files, and including version difference identification functions.

[0027] Specifically, exporting the strings file to an Excel file includes the following steps:

[0028] initialization:

[0029] a1. Set the iOS project path in the Python program, the program scans the strings file in the path, and stores the file name, path, and language as a dictionary type;

[0030] a2. The program should contain a reference file variable. When the path of the reference file (Excel file of the previous version) is not passed in, it will be exported in a new way; when the reference file is passed in, it will be exported in the way of version update;

[0031] a3. Initialize the table object, use the Python openpyxl lib...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an iOS APP internationalized file management method based on Python. The method comprises the following steps: establishing a one-to-one correspondence relationship between strings files with the same content and in different languages and different forms of Excel files; creating an Excel file by adopting an openpyxl library of Python, reading a key and a value in the strings file, and writing the key and the value into an Excel file form; carrying out translation on the Excel file; and importing the Excel file into the strings file. According to the method, an Excel file used by a translator is connected with a strings file used by a developer, so that the strings file is automatically exported as the Excel file, and the Excel file is automatically imported into the strings file; manual repeated copying and pasting operations are avoided, the time cost is reduced, and the development efficiency is improved.

Description

technical field [0001] The present invention relates to the technical field of software development, specifically, a Python-based iOS APP internationalization file management method. Background technique [0002] Under the trend of globalization, more and more mobile apps need to support multiple languages ​​to provide services for customers in different countries and regions. In the field of iOS native APPs, internationalization files refer to files of type strings, which are used to manage translation content in different language versions. It is rare for an APP developer to directly perform multilingual translation. Most of the time, the developer will export the content to be translated as an Excel file and send it to the translator. After translation, it will be transferred to the developer for replacement. When there is a large amount of translation content, the traditional manual export and import will take a lot of time, and there is a certain risk of error due to m...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/40G06F16/22G06F16/23
CPCG06F8/40G06F16/2282G06F16/23
Inventor 吴竞李晨心李生强
Owner SICHUAN CHANGHONG ELECTRIC CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products