To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=61007
Issue #:|61007
Summary:|RFE: Make AutoCaption format localisable
Component:|Word processor
Version:|OOo 2.0.1
Platform:|All
URL:|
OS/Version:|All
Status:|UNCONFIRMED
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|ENHANCEMENT
Priority:|P3
Subcomponent:|code
Assigned to:|mru
Reported by:|openskm
------- Additional comments from [EMAIL PROTECTED] Sun Jan 22 05:55:31 -0800
2006 -------
In AutoCaption text first comes the type of the caption and the number comes
after it (e.g. Figure 1). This is not suitable for all languages. For example in
Hungarian "Figure 1" should be "1. ábra" not "Ábra 1". The term "Ábra 1" is
grammatically incorrect and look unprofessional in a Hungarian text.
The suggestion is to let the AutoCaption format be localisable, for example
there could be a translatable format string like "%s %d" which could be easily
translated as "%d. %s" in Hungarian.
In current Hungarian community builds an ad-hoc patch is used. Of course it is
not suitable for inclusion, because other languages need the original format and
this patch breaks that.
--- sw/source/ui/frmdlg/cption.cxx.orig 2005-09-11 17:24:55.000000000 +0200
+++ sw/source/ui/frmdlg/cption.cxx 2005-10-21 19:49:24.187500000 +0200
@@ -427,11 +427,6 @@
aFormatBox.GetSelectEntryPos() );
if( SVX_NUM_NUMBER_NONE != nNumFmt )
{
- // Kategorie
- aStr += sFldTypeName;
- if ( aStr.Len() > 0 )
- aStr += ' ';
-
SwWrtShell &rSh = rView.GetWrtShell();
String sFldTypeName( aCategoryBox.GetText() );
SwSetExpFieldType* pFldType = (SwSetExpFieldType*)rSh.GetFldType(
@@ -460,6 +455,10 @@
//case ARABIC:
default: aStr += '1'; break;
}
+ // Kategorie
+ aStr += '.';
+ aStr += ' ';
+ aStr += sFldTypeName;
}
aStr += aSepEdit.GetText();
--- sw/source/core/doc/doclay.cxx.orig 2005-09-11 17:23:48.000000000 +0200
+++ sw/source/core/doc/doclay.cxx 2005-10-21 20:07:02.078125000 +0200
@@ -1566,8 +1566,9 @@
String aTxt;
if(pType)
{
- aTxt += pType->GetName();
+ aTxt += '.';
aTxt += ' ';
+ aTxt += pType->GetName();
}
xub_StrLen nIdx = aTxt.Len();
aTxt += rSeparator;
@@ -1584,7 +1584,7 @@
if(pType)
{
SwSetExpField aFld( (SwSetExpFieldType*)pType, aEmptyStr,
SVX_NUM_ARABIC);
- pNew->Insert( SwFmtFld( aFld ), nIdx, nIdx );
+ pNew->Insert( SwFmtFld( aFld ), 0, 0 );
if(rCharacterStyle.Len())
{
SwCharFmt* pCharFmt = FindCharFmtByName( rCharacterStyle );
--- sw/source/ui/config/optload.cxx.orig 2005-11-12 18:59:30.000000000
+0100
+++ sw/source/ui/config/optload.cxx 2005-11-12 21:08:42.000000000 +0100
@@ -905,9 +905,6 @@
aFormatBox.GetSelectEntryPos() );
if( SVX_NUM_NUMBER_NONE != nNumFmt )
{
- // Kategorie
- aStr += aCategoryBox.GetText();
- aStr += ' ';
SwWrtShell *pSh = ::GetActiveWrtShell();
String sFldTypeName( aCategoryBox.GetText() );
@@ -940,6 +937,10 @@
//case ARABIC:
default: aStr += '1'; break;
}
+ // Kategorie
+ aStr += '.';
+ aStr += ' ';
+ aStr += aCategoryBox.GetText();
}
aStr += aTextEdit.GetText();
}
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]