Commit Graph

28 Commits

Author SHA1 Message Date
Oliver Tappe b891b0acae * broke out locale-related jam rules into their own file, LocaleRules
* made locale build tools shut up about anything except warnings or errors


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37723 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-23 19:56:24 +00:00
Adrien Destugues e9024a3be5 * Build tools : allow to run DoCatalogs with a custom regexp for special cases
* Introduce a system-wide localization catalog used for strings hidden deep in some libraries. Add special API to get it.
 * string_for_size is the first to make use of this system wide catalog. This allows to have a fully localized DriveSetup.
 * As a side effect, tracker also uses it. It now requires liblocale.so.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36175 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-11 23:00:25 +00:00
Ingo Weinhold 58b0a5dda6 DoCatalogs:
* Renamed parameter "appName" to "target".
* Replaced parameter "generatedCatalog" by "sourceLanguage" and made it
  optional. Default is "en".
* Removed the no longer needed parameter from the DoCatalogs invocations.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36016 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-31 18:34:03 +00:00
Ingo Weinhold eb3a834144 Enabled automatic catkeys globbing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36007 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-30 17:57:49 +00:00
Ingo Weinhold f29f258224 * DoCatalogs:
- Cleaned up and prepared automatic globbing of the catkeys files.
    Currently commented out as it breaks the build.
  - Removed the AddFilesToHaikuImage invocation, which doesn't belong there.
    Instead we set the variable HAIKU_CATALOG_FILES on the target and
    automatically add the catalogs of a target in AddFilesToContainer.
* LinkApplicationCatalog: Pass the language name to the actions via variable.
  Fixes the "independent target" warning.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36002 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-29 21:36:00 +00:00
Adrien Destugues c48d1db6ff Disable catalogs for appearance until someone finds why the en.catkeys doesn't get built.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34740 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-12-22 11:36:40 +00:00
Adrien Destugues 9c1a9b926a * Patch by Humdinger to convert a lot of things to sentance case.
* Cleanup and update of all the touched catkeys files


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34731 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-12-21 12:51:41 +00:00
Axel Dörfler f9a80fec95 * LocaleRoster.h was not self-containing.
* Moved the locale stuff to the data directory as well (some parts were in /etc).
* The DefaultCatalog will now also scan the user directory for catalogs.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33983 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-10 13:44:22 +00:00
Adrien Destugues 67bcc8cb69 Removed accidental debug. Thanks Stephan !
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33627 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 21:20:04 +00:00
Adrien Destugues e983ba85e9 Move the Locale Kit catalogs in a common place in data/catalogs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33624 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 19:04:55 +00:00
Adrien Destugues 0007a867cf -Internationalization and french locale for Fonts preflet
-Added grist to the sourcecode files sent to collectcatkeys to avoid mixups


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-01 20:05:56 +00:00
Adrien Destugues 0a255c0c6a Cleanup of the locale kit tools :
-Jamrule for collectcatkeys no longer print all the strings, only a message when it can't parse one (happens for TR(variable) basically)
-Added fingerprint check in the plaintext catalog ReadFromFile. However, the adler checksum is different each time the catalog is loaded because it relies on the string being iterated always in the same order, but this is not always the case with an HashMap ! Some rethinking is needed, so disabled the check for now so it does not breaks the build
-Some try to debug the bluetooth preflet localization. Still buggy, but I wanted to commit all this mess before I break everything up again.
-Also sorted the fr.catkeys files to be in the same order as the autogenerated en.catkeys (this is useless but makes them easier to check) and updated their fingerprint even if they are still not checked.
-Miscelaneous style fixes, small bugfixes, more error checking and error messages saying where they come from.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-27 21:19:52 +00:00
Adrien Destugues b254319360 -Started to localize the appearance preflet to find more locale kit bugs. It worked.
-MarkForTranslation was not scanned by collectcatkeys, improved the regexp to take it into account
-Some gristing was missing in jamrules, added a bit, still seem to miss some.
-Replaced $(var:B).ext with $(var:S=.ext) as it is the proper way in order not to loose grist and mess things up
-Removed icu include and replaced direct class nesting with pointer to avoid binary compatibility breakage on ICU updates.
-Fixed TimeFormatSettingsView to properly include needed icu things. Should not be there, actually. Needs cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33210 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-20 22:16:30 +00:00
Oliver Tappe 75f1522155 * reintegrated gsoc-locale-kit branch into trunk - there's more
work to do, but it's about time to give this code more exposure.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-18 22:23:34 +00:00
Ingo Weinhold 0ba49c35b3 * BuildPlatformMain supports overriding HOST_LIBROOT on the target now,
so one can set it to the static libroot, if desired.
* Generic attribute emulation:
  - Added build tool rm_attrs, a simple "rm" replacement, which also
    removes the attributes directory for a given file.
  - Added build/scripts/rm_attrs shell script, which wraps the
    invocation of the rm_attrs tool. If it doesn't exist yet, the
    ordinary rm is used.
  - The RM jam variable refers to the rm_attrs script now, i.e. whenever
    something is removed by the build system, the attributes are removed
    too (if the build tool has already been built, that is).
  - Removed the shell function attrrmrf() in build_haiku_image. We use
    the rm_attrs tool instead, if necessary.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-03-22 21:05:03 +00:00
Axel Dörfler 4421183286 * Changed Ld rule to allow adding resource files.
* Changed ResAttr rule to allow not deleting the file before writing the
  attributes.
* Added application signatures for the runtime_loader and zbeos, just so that
  they may have an icon, too (hint, hint) :-)
* As a side effect, this also let's FileTypes handle these two as apps (even
  though they aren't), so that I can close bug #606.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-02 15:22:13 +00:00
Ingo Weinhold 81bb654dfb Made the ResComp and ResAttr actions spaces-in-file-names-proof.
AddDirectoryToHaikuImage with attributes does also work for directory
names with spaces now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21761 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-31 01:54:24 +00:00
Ingo Weinhold 3ddb7b1df4 * ResComp can now deal with multiple input files at once.
* Added ResAttr rule, which converts resource (or rdef) files to a
  file with attributes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21708 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-07-26 23:08:05 +00:00
Ingo Weinhold c033041c9f Using a temporary file doesn't seem to work very well in this case.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-18 17:27:17 +00:00
Ingo Weinhold 31ef846e36 Missed the usual compatibility context.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-18 17:00:18 +00:00
Ingo Weinhold b696213351 Added rule AddFileDataAttribute to add an attribute to a file. The
attribute value is read from another file.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21166 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-18 16:50:47 +00:00
Axel Dörfler ef33454cfd * Reverted my change to AddFileDataResource - I obviously missed someone's intentions :-)
* Added a comment about the proper use of the data-file argument.
* Applied Ingo's suggestion to the Jamfile, and it worked out of the box.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19649 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-28 21:28:17 +00:00
Axel Dörfler 7288922282 Removed $(dataFile) from file name of the resource - this allows to put your
resource data files into subdirectories; the resource ID is supposed to be unique, anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19643 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-28 13:49:51 +00:00
Jérôme Duval 049112799e provided a fix for the build of resources, hope I didn't do bad things
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18422 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-07 12:07:05 +00:00
Ingo Weinhold b0634f6510 Resource definition files (*.rdef) are now piped through the C preprocessor.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-06 12:38:30 +00:00
Ingo Weinhold 2cb3f38f9f Fixed comment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16264 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-06 23:04:54 +00:00
Ingo Weinhold 7aa7880955 Build mimeset for the build platform and use it for the apps we build.
This fixes bug #74.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-28 22:02:48 +00:00
Ingo Weinhold 338b8dc301 Merged changes from branch build_system_redesign at revision 14573.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-29 16:27:43 +00:00