pnrf wrote:
But I don't know if it is possible to do how I want, like select the Language file just with one single page/button/text whatever, for all the languages. However, I know that the software has some limitations, for what I've seen until now.
I would say 'Yes', it is possible to create for example one Opus Page and have it display different
text content based upon which language is selected. Exactly how to do this becomes a design choice -- e.g., how complex the Page is (are there many text objects, is there a lot of conditional branching and changing of content while on the Page, etc.); and another factor is this: do you want the User to select Language once at the beginning OR be able to switch languages while viewing a Page (and presumably, then swap content at the current state of progress on that page and not restart the page).
Quote:
By the way, do you know how exactly works the INI files?
I have only worked with INI files a small amount to test the feature and to determine the practicality. I decided to use SQLite database instead.
Here is one thread that discusses INI file in more depth:
viewtopic.php?f=6&t=2566&hilit=INI+fileI should mention that the Pub TYPE needs to be Full Opus Professional type, not Flex or web-based etc... and that you access INI files with scripting (I think not available in std actions?)
Ref in the
OpusScript Help File:
GetINIFileData()
Syntax:
GetINIFileData( FilePath, Section, Key )If you do not want to get into writing scripts in Opus to use INI files, you still may be able to use Opus' Standard Actions
to get discreet bits of data for Button labels and instructions, etc -- specifcally under category of Storage ...think 'field'. Read and write to files.
Includes the
Read Next Field from File ActionIf I were creating a multi-language Pub with hundreds of content files (.txt, .rtf, or .html... or .INI), I might consider a
simple approach -- put the French files in one folder, and the German files in another folder. Use the exact same name for the files. Then all I need to do is set or choose the PATH once.
Create a Publication variable to store the path string. for example, langPATH var could store User selection initially done on a 'landing' page (radio button or other method):
SYSTEM_PUBLICATION_DIR\\content\\french\\Paris_info.txt
SYSTEM_PUBLICATION_DIR\\content\\german\\Paris_info.txt
On the Opus Page, you create a Text Object. You have several methods to populate the text there:
One way: set the object Properties >>> Text tab --- to
automatically read in this disk fileOther: Right-Click when editing/insertion point, and Insert Variable (use the Read File actions)
Please do read this entry in the Help File -- it may solve much of the perceived obstacle.Using Variables To Create Pathnames
The Read and Write actions in the Storage menu contain a Filename field. This field is used to enter the pathname of the file you want to create or read information from. Opus provides four different ways of entering the pathname to this field (in Standard Action dialog)
, they are as follows: (see help file)
There are yet other ways to achieve and control variation of content text or documents. ( Multiframes, or Browser object w/local file, or _____?______). Search the forum and see what other people considered.