Using Mozilla Translator: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 1: Line 1:
= '''NOT FINISHED YET!!''' =
= '''NOT FINISHED YET!!''' =


= '''Needs to be addapted for Firefox 3.1 and mercurial, so DO NOT USE''' =
= '''Needs to be addapted for Firefox 3.1 and mercurial, so DO NOT USE YET''' =


== Glossary ==
== Glossary ==
Line 10: Line 10:


[version] → actual version: ''trunk'', ''3.0.x'', ''1.0'', ''0.x'' ...
[version] → actual version: ''trunk'', ''3.0.x'', ''1.0'', ''0.x'' ...


== Setting up the enviroment ==
== Setting up the enviroment ==
Line 27: Line 28:


(for Ubuntu or Debian OS, may vary for other systems)
(for Ubuntu or Debian OS, may vary for other systems)


=== Directory structure ===
=== Directory structure ===
Line 38: Line 40:
                 '''|MT.sh''' (file, see bellow)
                 '''|MT.sh''' (file, see bellow)
                 '''|[product]/[version]/'''
                 '''|[product]/[version]/'''
 
    '''/[product][version]/'''
As you could know, change [product] with your actual product, like firefox, fennec, sunbird... and [version] with the actual version you will work on: 3.1, 3.0 ...


=== Files and scripts ===
=== Files and scripts ===


'''mt.jar''': Download MT (not the sources!) from [http://sourceforge.net/project/showfiles.php?group_id=18842 here]. Extract MT5xx.jar to your ''/home/[user]/MT/'' directory. Then, rename it from '''MT5xx.jar''' to '''mt.jar'''.
'''mt.jar''': Download MT (not the sources!) from [http://sourceforge.net/project/showfiles.php?group_id=18842 here]. Extract MT5xx.jar to your ''/home/[user]/MT/'' directory. Then, rename it from '''MT5xx.jar''' to '''mt.jar'''.
Line 51: Line 51:


'''MT.sh''': Copy the file to ''/home/[user]/MT/''
'''MT.sh''': Copy the file to ''/home/[user]/MT/''
'''repo-hg.sh''': Copy to ''/home/[user]/bin/''


=== Configuring hg to pull files ===
=== Configuring hg to pull files ===
Line 81: Line 83:
  cd firefox31/
  cd firefox31/


And then, we need to check out the sources for our project, in the case of Firefox: "mozilla-central", and the rest (Thunderbird, Seamonkey, Sunbird...) is "comm-central". So, use the apropiate repo for you:
Now, we are going to use a nice work that Philippe from Mozilla France did in the first days of hg. He did it because mercurial doesn't allow to download only a few directories (this means that we couldn't check out only the "browser/locales/en-US" dir for example), so if we want the en-US localization, we need to download the whole repository, and for localizers, the 99.99% of these files, are junk for us.


  hg clone http://hg.mozilla.org/mozilla-central/
  hg clone http://hg.frenchmozilla.fr/


or
This will create a new directory in (our case) ~/firefox31/ called hg.frenchmozilla.fr. This ''only'' contains the en-US locale, which is around 4MB of data, instead of the 250MB only for mozilla-central (and more for comm-central and for future mobile-central).


hg clone http://hg.mozilla.org/comm-central/
[You maybe want to use the [http://groups.google.com/group/mozilla.dev.l10n/browse_thread/thread/70721fd6440bfb68# hg repo that FrenchMozilla has done]. I haven't tested myself, so, be adventurous]
Be patient, this will download the WHOLE mozilla-central or comm-central repository as Mercurial doesn't allow to do partial checkouts. In the end, you will have a lot of useless data for localizers ;).
And you will have a new directory placed on ~/[product][version]/[mozilla or comm]-central/


== Downloading ab-CD sources ==
== Downloading ab-CD sources ==
Line 111: Line 106:


== Setting up MT configuration ==
== Setting up MT configuration ==


[[Category:L10n]]
[[Category:L10n]]
Confirmed users
120

edits

Navigation menu