mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 16:40:07 +02:00
Improve source for generation of .pot file.
"clang " is the name of a compiler and should not be translated. Other changes here from seeing how translation was actually being done.
This commit is contained in:
parent
416b897337
commit
c4a1787bb9
@ -690,14 +690,14 @@ void AboutDialog::PopulateInformationPage( ShuttleGui & S )
|
|||||||
|
|
||||||
#ifdef __GNUC_PATCHLEVEL__
|
#ifdef __GNUC_PATCHLEVEL__
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
AddBuildinfoRow(&informationStr, _("Compiler:"), _("MinGW ") + wxMAKE_VERSION_DOT_STRING_T(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__));
|
AddBuildinfoRow(&informationStr, _("Compiler:"), wxT("MinGW ") wxMAKE_VERSION_DOT_STRING_T(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__));
|
||||||
#else
|
#else
|
||||||
AddBuildinfoRow(&informationStr, _("Compiler:"), _("GCC ") + wxMAKE_VERSION_DOT_STRING_T(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__));
|
AddBuildinfoRow(&informationStr, _("Compiler:"), wxT("GCC ") wxMAKE_VERSION_DOT_STRING_T(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__));
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __clang_version__
|
#ifdef __clang_version__
|
||||||
AddBuildinfoRow(&informationStr, _("Compiler:"), _("clang " __clang_version__));
|
AddBuildinfoRow(&informationStr, _("Compiler:"), wxT("clang ") __clang_version__);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Install prefix
|
// Install prefix
|
||||||
|
@ -7290,7 +7290,8 @@ wxString AudacityProject::ClipBoundaryMessage(const std::vector<FoundClipBoundar
|
|||||||
wxString message;
|
wxString message;
|
||||||
for (auto& result : results) {
|
for (auto& result : results) {
|
||||||
wxString temp;
|
wxString temp;
|
||||||
|
// TODO This section is extremely difficult for translators.
|
||||||
|
// Can it be made easier and can hints be given?
|
||||||
temp.Printf(wxT("%s %d "), result.clipStart1 ? _("start") : _("end"), result.index1 + 1);
|
temp.Printf(wxT("%s %d "), result.clipStart1 ? _("start") : _("end"), result.index1 + 1);
|
||||||
message += temp;
|
message += temp;
|
||||||
|
|
||||||
|
@ -811,14 +811,20 @@ void SelectionBar::SetSelectionMode(int mode)
|
|||||||
|
|
||||||
#ifdef SEL_RADIO_TITLES
|
#ifdef SEL_RADIO_TITLES
|
||||||
if( mStartEndProxy == NULL ){
|
if( mStartEndProxy == NULL ){
|
||||||
|
// The line breaks are a little funny in order that the i18n hints occur i the right place in
|
||||||
|
// the .pot file
|
||||||
|
mStartEndRadBtn->SetLabelText( (id == StartEndRadioID) ? _("Start - End") :
|
||||||
// i18n-hint: S-E is an abbreviation of Start-End
|
// i18n-hint: S-E is an abbreviation of Start-End
|
||||||
mStartEndRadBtn->SetLabelText( (id == StartEndRadioID) ? _("Start - End") : _("S-E") );
|
_("S-E") );
|
||||||
|
mStartLengthRadBtn->SetLabelText( (id == StartLengthRadioID) ? _("Start - Length") :
|
||||||
// i18n-hint: S-L is an abbreviation of Start-Length
|
// i18n-hint: S-L is an abbreviation of Start-Length
|
||||||
mStartLengthRadBtn->SetLabelText( (id == StartLengthRadioID) ? _("Start - Length") : _("S-L") );
|
_("S-L") );
|
||||||
|
mLengthEndRadBtn->SetLabelText( (id == LengthEndRadioID) ? _("Length - End") :
|
||||||
// i18n-hint: L-E is an abbreviation of Length-End
|
// i18n-hint: L-E is an abbreviation of Length-End
|
||||||
mLengthEndRadBtn->SetLabelText( (id == LengthEndRadioID) ? _("Length - End") : _("L-E") );
|
_("L-E") );
|
||||||
|
mLengthCenterRadBtn->SetLabelText( (id == LengthCenterRadioID) ? _("Length - Center") :
|
||||||
// i18n-hint: L-C is an abbreviation of Length-Center
|
// i18n-hint: L-C is an abbreviation of Length-Center
|
||||||
mLengthCenterRadBtn->SetLabelText( (id == LengthCenterRadioID) ? _("Length - Center") : _("L-C") );
|
_("L-C") );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -840,6 +846,7 @@ void SelectionBar::SetSelectionMode(int mode)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SEL_BUTTON_TITLES
|
#ifdef SEL_BUTTON_TITLES
|
||||||
|
// Not translated. This is old experiemental code that is probably on the way out.
|
||||||
wxString CenterNames[] = { " Start - End ", " Start - Length ", " Length - End ", " Length - Center " };
|
wxString CenterNames[] = { " Start - End ", " Start - Length ", " Length - End ", " Length - Center " };
|
||||||
mButtonTitles[1]->SetLabel( CenterNames[mode] );
|
mButtonTitles[1]->SetLabel( CenterNames[mode] );
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user