Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 97281 Details for
Bug 48826
Hyper's CdCatalog ebuild request
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
hcdcat-gentoo_langpaths.patch
hcdcat-gentoo_langpaths.patch (text/plain), 2.50 KB, created by
Przemyslaw Maciag (RETIRED)
on 2006-09-17 14:56:11 UTC
(
hide
)
Description:
hcdcat-gentoo_langpaths.patch
Filename:
MIME Type:
Creator:
Przemyslaw Maciag (RETIRED)
Created:
2006-09-17 14:56:11 UTC
Size:
2.50 KB
patch
obsolete
>diff -Naur CdCat-1.01b-orig/src/cdcat.cpp CdCat-1.01b/src/cdcat.cpp >--- CdCat-1.01b-orig/src/cdcat.cpp 2005-08-22 17:03:00.000000000 +0000 >+++ CdCat-1.01b/src/cdcat.cpp 2006-09-17 23:44:02.000000000 +0000 >@@ -49,7 +49,7 @@ > > > #ifdef _WIN32 >- QString langpath( applicationDirPath(argc) + "/lang/cdcat_" ); >+ QString langpath( applicationDirPath(argc) + "/lang/hcdcat_" ); > langpath += cconfig->lang; > langpath += ".qm"; > >@@ -61,7 +61,7 @@ > QString locale = QTextCodec::locale(); > QString locale2 = locale.left( 2 ); > QString prefix = applicationDirPath(argc).left( applicationDirPath(argc).length() - 4 ) + "/"; // /usr/local/bin -> /usr/local >- translation_paths.append( new QString( prefix + "share/cdcat/translations" ) ); >+ translation_paths.append( new QString( prefix + "share/hcdcat/translations" ) ); > translation_paths.append( new QString( applicationDirPath( argc ) + "/lang" ) ); > translation_paths.append( new QString( prefix + "share/locale/" + locale + "/LC_MESSAGES" ) ); > translation_paths.append( new QString( prefix + "share/locale/" + locale2 + "/LC_MESSAGES" ) ); >@@ -71,20 +71,20 @@ > for ( uint i = 0; i < translation_paths.count(); ++i ) > { > //cerr <<"path: " << *translation_paths.at(i) << endl; >- QFileInfo info( *translation_paths.at( i ) + "/cdcat_" + locale + ".qm" ); >+ QFileInfo info( *translation_paths.at( i ) + "/hcdcat_" + locale + ".qm" ); > if ( info.exists() ) > { > // cerr << "file " + *translation_paths.at( i ) + "/cdcat_" + locale + ".qm" + " does exist!" << endl; >- langpath = *translation_paths.at( i ) + "/cdcat_" + locale + ".qm"; >+ langpath = *translation_paths.at( i ) + "/hcdcat_" + locale + ".qm"; > } > else > { > // cerr << "file " + *translation_paths.at( i ) + "/cdcat_" + locale + ".qm" + " does NOT exist!" << endl; >- QFileInfo info2( *translation_paths.at( i ) + "/cdcat_" + locale2 + ".qm" ); >+ QFileInfo info2( *translation_paths.at( i ) + "/hcdcat_" + locale2 + ".qm" ); > if ( info2.exists() ) > { > // cerr << "file " + *translation_paths.at( i ) + "/cdcat_" + locale2 + ".qm" + " does exist!" << endl; >- langpath = *translation_paths.at( i ) + "/cdcat_" + locale2 + ".qm"; >+ langpath = *translation_paths.at( i ) + "/hcdcat_" + locale2 + ".qm"; > } > } > >@@ -139,7 +139,7 @@ > QString applicationFilePath( char **argc ) > { > #ifdef Q_WS_WIN >- return QDir::cleanDirPath( QFile::decodeName( "cdcat" ) ); >+ return QDir::cleanDirPath( QFile::decodeName( "hcdcat" ) ); > #else > > QString absPath;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 48826
:
32334
|
40736
|
40737
|
44044
|
69640
|
69646
|
79811
|
93800
|
93829
|
97280
| 97281 |
97282
|
225561
|
333544
|
333546
|
553488