Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

The method to manage the level of language dependent parts in source codes

IP.com Disclosure Number: IPCOM000179229D
Original Publication Date: 2009-Feb-10
Included in the Prior Art Database: 2009-Feb-10
Document File: 2 page(s) / 63K

Publishing Venue

IBM

Abstract

Disclosed is a method to manage the level of language dependent parts in source codes using “base language” attribute and “index” attribute.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 54% of the total text.

Page 1 of 2

The method to manage the level of language dependent parts in source codes

This invention uses message files instead of property files. Each message id has "base" attribute. This attribute shows the language which the programmer normally uses to write a program.

A

message id has message texts written by each language. Each message text has "index" attribute. This attribute shows modified date-time of the message text. Fig 1 shows the sample of message file.

Sample.messages

<attr locale="Ja_JP" index="2008/12/03 10:00:00" text="こんにちは" <attr locale="En_US" index="2008/12/03 11:30:00" text="Hello"

<attr locale="Ja_JP" index="2008/11/30 17:20:00" text="さようなら" <attr locale="En_US" index="2008/11/24 09:00:00" text="Good night"

Fig 1. The sample of message files

It is easy to sort messages using "index" attribute and to find the message texts older than the message text for "base language". So, message editor such as Resource Bundle editor can mark "need to modify" flag to the message text. Fig 2 shows the sample implementation and shows how to mark an old message text.

indexを比較して修正が必 要なものにマークをつける

Mark the language which needs to modify using index

Sample.messages

<attr locale="Ja_JP" index="2008/12/03 10:00:00" text="こんにちは" <attr locale="En_US" index="2008/12/03 11:30:00" text="Hello"

<attr locale="Ja_JP" index="2008/11/30 17:20:00" text="さようなら" <attr locale="En_US" index="2008/11/24 09:00:00" text="Good night"

MSG001 MSG002

さようなら

Read

Good night

Edit

Sample.messages

日本語 (Base)

<attr locale="Ja_JP" index="2008/12/03 10:00:00"...