1.23.1: 2012-11-19 Murray Cumming Import example .po translations into the examples. 2012-11-12 Murray Cumming Resave the examples. * examples/example_project_manager.glom: Using make examples_import_po. 2012-11-12 Murray Cumming Document: Save static image data as a child text node, not an attribute. * glom/libglom/document/document.cc: load_after_layout_group(), save_before_layout_group(): Save LayoutItem_Image data as a child text node of a node, instead of as an attribute, because this is generally better for large chunks of arbitrary text, and because this lets us specify the format using the existing code. * glom/glom_document.dtd: Update appropriately. 2012-11-12 Murray Cumming Export to po files: Avoid duplicates. * glom/libglom/document/document.cc: Use a std::find_if() predicate to avoid adding a duplicate item/hint pair, which would result in a msgfmt -C error. 2012-11-11 Murray Cumming Regenerate .po files for examples, adding Print Layout items. * examples/po_files/: Using make example_export_po, and only committing the relevant changes. 2012-11-11 Murray Cumming Export to po files: Also export text items from Print Layouts. * glom/libglom/data_structure/layout/static_text.[h|cc]: A new derived TranslatableItem, just so we can identify its purpose polymorphically. * glom/libglom/filelist.am: Mention the new files. * glom/libglom/data_structure/layout/layoutitem_text.[h|cc]: Use StaticText instead of TranslatableItem for m_text. * glom/libglom/data_structure/translatable_item.[h|cc]: Add an enum for the new derived type, and return its name from the get_translatable_type*() methods. These are used of in PrintLayouts. * glom/libglom/document/document.[h|cc]: load_after_layout_group(): Adapt. Add get_translatable_print_layout_items() and use it in get_translatable_items(). * tests/test_document_load_translations.cc: Check that get_translatable_items() returns some PrintLayouts. 2012-11-11 Murray Cumming Export to .po files: Make sure we export static text items. * glom/libglom/document/document.cc: fill_translatable_layout_items(): Add the member text (a translatable item) of LayoutItem_Text items. Also add LayoutItem_Images items, which may have titles. * tests/test_document_load_translations.cc: Check that a LayoutItem_Text is present. * glom/glom_document.dtd: Improve this for these items. 2012-11-11 Murray Cumming Need a short description (OOPS!). Need the bug URL (OOPS!). Reviewed by NOBODY (OOPS!). Additional information of the change such as approach, rationale. Please add per-function descriptions below (OOPS!). * glom/glom_document.dtd: * glom/libglom/document/document.cc: * tests/test_document_load_translations.cc: 2012-11-11 Murray Cumming Tests: Add pixbuf-loading tests in more places. * tests/test_document_load_image.cc: * Makefile_tests.am: * tests/test_utils_images.[h|cc]: Move the use of GdkPixbufLoader into a check_value_is_an_image() utility function. * tests/test_field_file_format.cc: * tests/test_selfhosting_new_then_image.cc: Use it here too. 2012-11-11 Murray Cumming examples: Add a static image item to the Project Manager example. * examples/example_project_manager.glom: This is just so we use this layout item somewhere, so we can test it. * glom/glom_document.dtd: Mention the layout_item_image tag. * configure.ac: * Makefile_tests.am: * tests/test_document_load_image.cc: Add a new test for this feature, using GdkPixbufLoader to check that we can interpret the data as an image. 2012-11-10 Murray Cumming Resave all the examples in the latest file format. * examples/example_film_manager.glom: * examples/example_lesson_planner.glom: * examples/example_music_collection.glom: * examples/example_project_manager.glom: * examples/example_smallbusiness.glom: Using make examples_import_po 2012-11-10 Murray Cumming Document: Save image data in base64 format rather than GDA format. * glom/libglom/document/document.cc: Increase the file format version. * glom/libglom/data_structure/field.[h|cc]: to_file_format(): Save the data in the XML as base64 instead of using gda_binary_to_string(). from_file_format(): Optionally interpret image data as the old GDA image format. Otherwise, use base64. * glom/libglom/xml_utils.cc: set_node_text_child_as_value(): Set the attribute format="base64" for image data. get_node_attribute_value_as_value(): Check for the format attribute and optionally ask from_file_format() to use the old format. * glom/glom_document.dtd: value: Mention the format attribute. 2012-11-10 Murray Cumming Update a test for the newer translations. * tests/test_document_load_translations.cc: Increase the number of expected translation locales and adapt to us having a (mostly useless) en_GB translation. 2012-11-08 Murray Cumming Import example .po translations into the examples. * examples/example_film_manager.glom: * examples/example_lesson_planner.glom: * examples/example_music_collection.glom: * examples/example_project_manager.glom: * examples/example_smallbusiness.glom: There are some new translations for el, id, and lv and en_GB, though only a few of the en_GB translated strings are different.