Issue 53727 - language pack should be platform independent
Summary: language pack should be platform independent
Status: CONFIRMED
Alias: None
Product: Installation
Classification: Application
Component: code (show other issues)
Version: 680m122
Hardware: All All
: P3 Trivial with 40 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on: 70132 53815
Blocks:
  Show dependency tree
 
Reported: 2005-08-24 14:26 UTC by pavel
Modified: 2013-08-07 15:26 UTC (History)
10 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
gzipped diff of all resources' hexdump -C in my build of OOD680_m5 (353.14 KB, application/x-gzip)
2006-10-05 14:10 UTC, pavel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description pavel 2005-08-24 14:26:16 UTC
Language packs contain various parts:

- help files in the apropriate language
- resource file
- some other files (extras, ...)

it would be nice to have language packs as platform independent packages
installable via UI. See e.g. how Mozilla handles them.

This could save unbelievable amount of disk space for all of us, can provide
nice and easy to use UI for our users. It could also help us to test
multiplatformness and unify file formats etc.

Later today, I'll provide comparison between m125 language packs for Windows and
Linux.

This is probably for 3.0 (or even later).
Comment 1 pavel 2005-08-24 14:26:39 UTC
.
Comment 2 Olaf Felka 2005-08-24 15:05:34 UTC
reassigned
Comment 3 pavel 2005-08-24 21:21:25 UTC
Resource files comparison:

I have compared resource files from Czech language packs on GNU/Linux and Windows:

pavel@paveljanik:/tmp/q/res> ls -1 Linux|wc -l
64
pavel@paveljanik:/tmp/q/res> ls -1 Windows|wc -l
63

-> GNU/Linux doesn't have opc680cs.res
-> GNU/Linux doesn't have spa680cs.res
-> Windows doesn't have san680cs.res

Other differences:
sw680cs.res on GNU/Linux and Windows have different sizes:

pavel@paveljanik:/tmp/q/res> ls -l */sw680cs.res
-r--r--r--  1 pavel users 286618 2005-08-24 18:05 Linux/sw680cs.res
-r--r--r--  1 pavel users 286672 2005-08-24 18:06 Windows/sw680cs.res

The other differemce is:

--- epb680cs.res-linux.hexdump  2005-08-24 18:28:34.000000000 +0200
+++ epb680cs.res-windows.hexdump        2005-08-24 18:28:38.000000000 +0200
@@ -1,5 +1,5 @@
 00000000  00 00 01 00 00 00 01 11  00 00 00 1c 00 00 00 1c  |................|
-00000010  46 69 6c 65 46 6f 72 6d  61 74 00 40 00 00 3e ed  |FileFormat.@..>í|
+00000010  46 69 6c 65 46 6f 72 6d  61 74 00 00 00 00 3e ed  |FileFormat....>í|

This is diff of hexdump -C on both GNU/Linux and Windows versions of
epb680cs.res, one of the shortest resource file. The only difference is 0x40 vs
0x00. We think that this is different representation of strings on both
platforms. This difference is very similar in other offsets:

-00000340  00 00 00 18 00 00 00 18  42 75 74 74 6f 6e 00 01  |........Button..|
+00000340  00 00 00 18 00 00 00 18  42 75 74 74 6f 6e 00 bf  |........Button.¿|

string, 0, "random" byte on Windows or 0 on GNU/Linux.
Comment 4 it46 2005-08-26 22:49:08 UTC
During the process of building Jambo OpenOffice.org 1.1.3, i managed to update
the translation of a windows version by using Linux-built resource files and
repacking all the stuff again for windows. Once a Linux built was finished,
resources files where copied into a Windows solver and the software was repacked
again.

I spent a few long nights trying to understand the resource files format in
order to build them for Windows using just Linux. Once a OOo version is built
for Windows new updated translations can be merged using just Linux.

Does anyone understand what a .res file exactly is? is a DB? can I build them by
other means?

Is it possible in OOo 2.0 to do what i did in 1.1.x? Or the whole MS Installer
requires Windows again? In 1.1.x ZIP made the job.
   
Comment 5 pavel 2006-10-03 20:33:18 UTC
pjanik: please investigate the current status in 2.0.4...
Comment 6 hjs 2006-10-04 09:00:46 UTC
as of SRC680, *.res files with different content on different platforms can be
considered a bug. please files a seperate issue if this is still the case.
regarding the content of the language pack itself, i'll CC is.
Comment 7 pavel 2006-10-05 14:10:15 UTC
Created attachment 39586 [details]
gzipped diff of all resources' hexdump -C in my build of OOD680_m5
Comment 8 pavel 2006-10-05 14:17:04 UTC
OOD680_m5:

diff attached.

All other files are of the same size. So with resources, only this problem
remains - I'll file separate issue for it.
Comment 9 pavel 2007-10-30 13:07:01 UTC
.
Comment 10 kpalagin 2008-10-29 08:34:31 UTC
Does somebody working on this issue?