Home

This is the home page for the "Contrib: l10n-Stats" space.

About l10-stats

l10n-Stats is a Contrib tool for analyzing the status of the Sakai translations in the source repository.

The tool looks at all the .properties files in the source repository and compairs the source files with the files of a given translation (eg. access.properties - access_nl.properties). The tool can be configured to output the results to a HTML page. The report displays:

  • Statistics - an overview of the number of translated keys
  • Missing translations - a list of keys that were found in the source language but not in the translation
  • Extra translations - a list of keys that are present in the translation, but missing in the source language.
  • Possible missing translation files - a list of .properties files without a corresponding file with the specified language.
  • Excluded files - a list of resource bundles that are excluded from the analysis

The analysis results can be found on http://qa1-nl.sakaiproject.org/international/ (runs against trunk, nightly)

The tool can also be downloaded from: https://source.sakaiproject.org/contrib/loi/l10n-stats. The latest version is 0.3.3

Contributed by: Leidse Onderwijsinstellingen

Excluded resource bundles

Not all resource bundles contain language strings. l10n-stats uses a regular expression filter that looks at the resource bundle path to exclude those .properties file that are not l10n related. The filters can be configured through the exclude.lst file.

sample exclude.lst

.*OsidImplBindings.properties$
.*SAM.properties$
.*database.properties$
.*ddl.properties$
.*defaultJdbc.properties$
.*hibernate.dataload.properties$
.*hibernate.properties$
.*hibernate.test.properties$
.*hsqldb.properties$
.*jmeter.properties$
.*log4j.properties$
.*mysql.properties$
.*oracle.properties$
.*project.properties$
.*quartz.properties$
.radeox_markup(_.|).properties$
.*sakai.properties$
.*simplelog.properties$
.*spring_contexts.properties$
.*system.properties$
.*test-context.properties$
.*velocity.properties$
.*\\target\\\.*
.*i18n.properties$
.*siteemacon.properties$
.*SampleCourseManagementProvider.properties$
.*colors.properties$
.*AudioResources.properties$
.*AuthzPermissions.properties$
.*AuthorImportExport.properties$
.*options.properties$
.*radeox_messages.properties$
.*CourseSectionCategories.properties$
.*presence.properties$
.*web-context.properties$
.*Configuration.properties$
.*views.properties$
.*matrix-views.properties$
.*RepositoryManager.properties$
.*content_type_extensions.properties$
.*content_type_images.properties$
.*radeox_markup_mywiki.properties$
.*radeox_markup_xml.properties$
.*radeox_markup.properties$
.*radeox_markup_otherwiki.properties$
.*sakai.db.properties$
.*CourseManagementProviderCMImpl.properties$
.*ground-colour.properties$
.*EmptyPropertiesFile.properties$
.*FullPreferences.properties$
.*MalformedPreferences.properties$
.*PartialPreferences.properties$
.*TransformAbleDefaultPrefs.properties$
.*castor.properties$
.*parsertest.properties$
.*sample-tool-jsf.properties$
.*htmlentities.properties$
.*binarytypes.properties$
.*staticcontenttypes.properties$

Version history

0.3.3

2010-11-23

Added new option -clean to remove unused keys
Added Maven POM to enable Maven builds

0.3.2

2007-04-19

Bug fix for translation statistics for bundles with zero translated keys (fixes the devision by zero exception).

0.3.1

2006-10-16

Exclude option now looks at the complete resource bundle path rather than just the file name

0.3

2006-10-10

  • Added the -exclude option. This can be used to exclude resource bundles that don't contain language keys from the report.
  • When creating HTML output completely translated bundles no longer link to missing text. This also solved a bug that created incorrect links for these bundles.

0.2

2006-09-28

Initial release