summaryrefslogtreecommitdiff
path: root/sfx2/source/view/view.src
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-06-11 20:56:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-21 08:20:50 +0100
commit00657aef09d854c74fb426a935a3e8b1fc390bb0 (patch)
treefd1a9bb264fe15dcc129498e62060ecd256b1ee7 /sfx2/source/view/view.src
parentfa987cbb813cfd729fe490f2f1258b7c8d7fb174 (diff)
migrate to boost::gettext
* all .ui files go from <interface> to <interface domain="MODULE"> e.g. vcl * all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string") * ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching MODULE .mo files * UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui goes from l10n target to normal one, so the res/lang.zips of UI files go away * translation via Translation::get(hrc-define-key, imbued-std::locale) * python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there to keep finding the .hrc file uniform) so magic numbers can go away there * java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation mechanism * en-US res files go away, their strings are now the .hrc keys in the source code * remaining .res files are replaced by .mo files * in .res/.ui-lang-zip files, the old scheme missing translations of strings results in inserting the english original so something can be found, now the standard fallback of using the english original from the source key is used, so partial translations shrink dramatically in size * extract .hrc strings with hrcex which backs onto xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap * extract .ui strings with uiex which backs onto xgettext --add-comments --no-wrap * qtz for gettext translations is generated at runtime as ascii-ified crc32 of content + "|" + msgid * [API CHANGE] remove deprecated binary .res resouce loader related uno apis com::sun::star::resource::OfficeResourceLoader com::sun::star::resource::XResourceBundleLoader com::sun::star::resource::XResourceBundle when translating strings via uno apis com.sun.star.resource.StringResourceWithLocation can continue to be used Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a
Diffstat (limited to 'sfx2/source/view/view.src')
-rw-r--r--sfx2/source/view/view.src165
1 files changed, 0 insertions, 165 deletions
diff --git a/sfx2/source/view/view.src b/sfx2/source/view/view.src
deleted file mode 100644
index 94f8a5ecbd1f..000000000000
--- a/sfx2/source/view/view.src
+++ /dev/null
@@ -1,165 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "view.hrc"
-#include <sfx2/sfx.hrc>
-#include "helpid.hrc"
-#include "sfxlocal.hrc"
-
-String STR_NODEFPRINTER
-{
- Text [ en-US ] = "No default printer found.\nPlease choose a printer and try again." ;
-};
-String STR_NOSTARTPRINTER
-{
- Text [ en-US ] = "Could not start printer.\nPlease check your printer configuration." ;
-};
-String STR_ERROR_PRINTER_BUSY
-{
- Text [ en-US ] = "Printer busy" ;
-};
-String STR_PAGE
-{
- Text [ en-US ] = "Page " ;
-};
-String STR_READONLY
-{
- Text [ en-US ] = " (read-only)" ;
-};
-String STR_PRINT_NEWORI
-{
- Text [ en-US ] = "The page size and orientation have been modified.\nWould you like to save the new settings in the\nactive document?" ;
-};
-String STR_PRINT_NEWSIZE
-{
- Text [ en-US ] = "The page size has been modified.\nShould the new settings be saved\nin the active document?" ;
-};
-String STR_PRINT_NEWORISIZE
-{
- Text [ en-US ] = "The page size and orientation have been modified.\nWould you like to save the new settings in the\nactive document?" ;
-};
-
-String STR_CANT_CLOSE
-{
- Text [ en-US ] = "The document cannot be closed because a\n print job is being carried out." ;
-};
-
-String STR_ERROR_SEND_MAIL
-{
- Text [ en-US ] = "An error occurred in sending the message. Possible errors could be a missing user account or a defective setup.\nPlease check the %PRODUCTNAME settings or your e-mail program settings." ;
-};
-
-String STR_QUERY_OPENASTEMPLATE
-{
- Text [ en-US ] = "This document cannot be edited, possibly due to missing access rights. Do you want to edit a copy of the document?" ;
-};
-String STR_REPAIREDDOCUMENT
-{
- Text [ en-US ] = " (repaired document)" ;
-};
-
-String STR_NONCHECKEDOUT_DOCUMENT
-{
- Text [ en-US ] = "This document is not checked out on the server." ;
-};
-String STR_READONLY_DOCUMENT
-{
- Text [ en-US ] = "This document is open in read-only mode." ;
-};
-String STR_READONLY_PDF
-{
- Text [ en-US ] = "This PDF is open in read-only mode to allow signing the existing file." ;
-};
-
-String STR_CLASSIFIED_DOCUMENT
-{
- Text [ en-US ] = "The classification label of this document is %1." ;
-};
-
-String STR_TARGET_DOC_NOT_CLASSIFIED
-{
- Text [ en-US ] = "This document must be classified before the clipboard can be pasted." ;
-};
-
-String STR_DOC_CLASSIFICATION_TOO_LOW
-{
- Text [ en-US ] = "This document has a lower classification level than the clipboard." ;
-};
-
-String STR_CLASSIFIED_INTELLECTUAL_PROPERTY
-{
- Text [ en-US ] = "Intellectual Property:" ;
-};
-
-String STR_CLASSIFIED_NATIONAL_SECURITY
-{
- Text [ en-US ] = "National Security:" ;
-};
-
-String STR_CLASSIFIED_EXPORT_CONTROL
-{
- Text [ en-US ] = "Export Control:" ;
-};
-
-String STR_CHECKOUT
-{
- Text[ en-US ] = "Check Out";
-};
-
-String STR_READONLY_EDIT
-{
- Text[ en-US ] = "Edit Document";
-};
-
-String STR_READONLY_SIGN
-{
- Text[ en-US ] = "Sign Document";
-};
-
-String STR_SIGNATURE_BROKEN
-{
- Text[ en-US ] = "This document has an invalid signature.";
-};
-
-String STR_SIGNATURE_INVALID
-{
- Text[ en-US ] = "The signature was valid, but the document has been modified";
-};
-
-String STR_SIGNATURE_NOTVALIDATED
-{
- Text[ en-US ] = "The signature is OK, but the certificate could not be validated.";
-};
-
-String STR_SIGNATURE_PARTIAL_OK
-{
- Text[ en-US ] = "The signature is OK, but the document is only partially signed.";
-};
-
-String STR_SIGNATURE_OK
-{
- Text[ en-US ] = "This document is digitally signed and the signature is valid.";
-};
-
-String STR_SIGNATURE_SHOW
-{
- Text[ en-US ] = "Show Signatures";
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */