Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

IOS APP character string resource file translation method and system

A string resource and string technology, applied in the field of string resource translation, can solve problems such as heavy maintenance workload, waste of interface display space, and large differences in the length of sentences or words.

Inactive Publication Date: 2022-01-21
HANGZHOU LIFESMART TECH
View PDF7 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The internationalization of APP string resources is generally divided into two methods: one method is to start the internationalization work in the APP user interface design stage, which is to extract the string resources through optical character recognition (OCR) or manual methods. The text resources in the design artwork are translated into the target language and provided to developers. The disadvantage of this solution is that the internationalization work is involved too early, and the interface may need to be modified and iterated during the development and testing phase later, which will Waste the previous internationalization work results; developers need to maintain multiple target language resource Bundle folders at the same time during the software development process, the maintenance workload is heavy and error-prone
Another solution is to extract the string resource file in the project after the APP is developed using the main language, and establish some kind of mapping table (that is, the mapping relationship between the string key key and the string value value, and use character strings in software engineering string key instead of the final language string), provide the mapping table to professional translators for translation into target files, and then the developers will merge the translated new target language resource files into the project file, and make the The APP installation package of language resource files, the problems of this solution are: due to the lack of context (Context), it is difficult to associate with the appropriate target language vocabulary simply from the string resource mapping table in the project, such as "open" Words, there are many translation methods such as "Power On", "On", "Open", "Enable", "Turn on", etc., when there is a lack of context (for example, the original text is "turn on the power switch" or "turn on the option") It is difficult to choose; the same meaning is expressed in different target languages, and the length of the sentence or word is very different. Often there will be a complete sentence after translation, which is truncated or produces ellipsis due to insufficient space when displaying the interface, and vice versa. However, using too short words and sentences wastes precious interface display space
Therefore, in order to select an appropriate text length, it is necessary to repeatedly modify the text resource, pack the APP installation package, run the test, and modify it again. This offline translation method is inefficient; the structured format of the mapping file table is easily destroyed. In practice, the mapping file table needs to follow a certain file structure format before it can be loaded by the program. This file format requirement will cause various special symbols such as escape characters and separators to appear in the translation content, which has great impact on the software engineering of translators. level puts forward certain requirements
In fact, during the development process, we have tried to use text files, Excel tables, and the method of filling in webpages on the development-specific website, but there will always be some problems with file format conversion

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 character string resource file translation method and system
  • IOS APP character string resource file translation method and system
  • IOS APP character string resource file translation method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The present invention will be described in detail below in conjunction with the specific embodiments shown in the accompanying drawings, but these embodiments do not limit the present invention, those of ordinary skill in the art make structural, method, or functional changes based on these embodiments All are included in the scope of protection of the present invention.

[0040] Such as figure 1 In the illustrated embodiment of the present invention, the present invention provides a method for translating an iOS APP character string resource file, the method comprising:

[0041] S1. Build an iOS APP executable file package. The iOS APP executable file package includes at least a source language resource Bundle folder. The source language resource Bundle folder includes at least one source language strings file, and each source language strings file includes multiple characters. String identifiers correspond to multiple source language strings, and multiple string iden...

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 character string resource file translation method. The method comprises the steps that a source language resource Bundle folder is loaded, a source language character string corresponding to a character string identifier in a source language strings file is obtained, an NSSring object is loaded and returned in an iOS system, the value of the NSSring object is the source language character string, and a corresponding interface control is created and added to the APP display interface; each NSSring object is associated with a character string identifier and a table name; a corresponding NSSring object is obtained according to a control identifier in the translation request information, an associated table name and character string identifier are obtained, a target language resource Bundle folder is created according to the obtained table name and character string identifier and a target language character string, the target language resource Bundle folder comprises a target language strings file, and the created target language strings file is updated on the basis of each translation request information to obtain a target language resource Bundle folder which is updated in real time. According to the invention, the functions of real-time translation and real-time updating can be realized.

Description

technical field [0001] The present invention relates to the technical field of string resource translation, in particular to a method and system for translating iOS APP string resource files. Background technique [0002] Internationalizing an app is one of the basic requirements for promoting app services to the world. APP internationalization refers to the translation of text, sound, pictures, etc. that appear during the interaction of the human-computer interface in the APP into different languages ​​to meet the needs of users in different countries and regions, that is, "translation" work. APP internationalization specifically includes: the internationalization of character string resources in the user interface (UI), the internationalization of image resources, and the internationalization of audio and video resources. Among them, the character string in the user interface is a type of resource with the largest quantity and the most frequent maintenance and update. ...

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): G06F9/451G06F40/58
CPCG06F9/454G06F40/58
Inventor 杜绍江龙奕辰吴正华
Owner HANGZHOU LIFESMART TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products