Files
loongoffice/cui/source/options/personalization.src
Muhammet Kara 6bfa24aacb Use English category names instead of localized ones in theme search tdf#87597
Added an OUString array to hold the original English strings
for search categories. The array is initialized in ctor by using
an initializer list of strings.

Also grouped the related strings of category names. So it can be
iterated easily without writing their names one by one.

Buttons in the UI will be displayed with localized strings,
but the search will take place with the original strings
coming from the array created in ctor.

Change-Id: Ieb72644203df1325e97693b14d5b3476020c6ff1
Reviewed-on: https://gerrit.libreoffice.org/28027
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-08-18 10:46:40 +00:00

71 lines
1.8 KiB
Plaintext

/* -*- 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 <cuires.hrc>
String RID_SVXSTR_SEARCHTERM
{
Text [ en-US ] = "Search term";
};
String RID_SVXSTR_SELECTEDPERSONA
{
Text [ en-US ] = "Selected Theme: ";
};
String RID_SVXSTR_SEARCHING
{
Text [ en-US ] = "Searching, please wait...";
};
String RID_SVXSTR_SEARCHERROR
{
Text [ en-US ] = "Cannot open %1, please try again later.";
};
String RID_SVXSTR_NORESULTS
{
Text [ en-US ] = "No results found.";
};
String RID_SVXSTR_APPLYPERSONA
{
Text [ en-US ] = "Applying Theme...";
};
/*
* This string array must have exactly the same content
* and the same order as the m_vSuggestionCategories array
* in personalization.cxx file.
*/
StringArray RID_SVXSTR_PERSONA_CATEGORIES
{
ItemList [en-US]=
{
< "LibreOffice" ; > ;
< "Abstract" ; > ;
< "Color" ; > ;
< "Music" ; > ;
< "Nature" ; > ;
< "Solid" ; > ;
};
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */