String Cleanup: replace translate(u'', u'') -> translate('', '')

This commit is contained in:
Frode Woldsund 2010-06-19 01:48:16 +02:00
parent 7beb4d4b84
commit 77e0e5a397
7 changed files with 566 additions and 566 deletions

View File

@ -114,451 +114,451 @@ class Ui_AboutDialog(object):
QtCore.QMetaObject.connectSlotsByName(AboutDialog) QtCore.QMetaObject.connectSlotsByName(AboutDialog)
def retranslateUi(self, AboutDialog): def retranslateUi(self, AboutDialog):
AboutDialog.setWindowTitle(translate(u'AboutForm', u'About OpenLP')) AboutDialog.setWindowTitle(translate('AboutForm', 'About OpenLP'))
self.AboutTextEdit.setPlainText(translate(u'AboutForm', self.AboutTextEdit.setPlainText(translate('AboutForm',
u'OpenLP <version><revision> - Open Source Lyrics ' 'OpenLP <version><revision> - Open Source Lyrics '
u'Projection\n' 'Projection\n'
u'\n' '\n'
u'OpenLP is free church presentation software, or lyrics ' 'OpenLP is free church presentation software, or lyrics '
u'projection software, used to display slides of songs, Bible ' 'projection software, used to display slides of songs, Bible '
u'verses, videos, images, and even presentations (if ' 'verses, videos, images, and even presentations (if '
u'OpenOffice.org, PowerPoint or PowerPoint Viewer is installed) ' 'OpenOffice.org, PowerPoint or PowerPoint Viewer is installed) '
u'for church worship using a computer and a data projector.\n' 'for church worship using a computer and a data projector.\n'
u'\n' '\n'
u'Find out more about OpenLP: http://openlp.org/\n' 'Find out more about OpenLP: http://openlp.org/\n'
u'\n' '\n'
u'OpenLP is written and maintained by volunteers. If you would ' 'OpenLP is written and maintained by volunteers. If you would '
u'like to see more free Christian software being written, please ' 'like to see more free Christian software being written, please '
u'consider contributing by using the button below.' 'consider contributing by using the button below.'
)) ))
self.AboutNotebook.setTabText( self.AboutNotebook.setTabText(
self.AboutNotebook.indexOf(self.AboutTab), self.AboutNotebook.indexOf(self.AboutTab),
translate(u'AboutForm', u'About')) translate('AboutForm', 'About'))
self.CreditsTextEdit.setPlainText(translate(u'AboutForm', self.CreditsTextEdit.setPlainText(translate('AboutForm',
u'Project Lead\n' 'Project Lead\n'
u' Raoul "superfly" Snyman\n' ' Raoul "superfly" Snyman\n'
u'\n' '\n'
u'Developers\n' 'Developers\n'
u' Tim "TRB143" Bentley\n' ' Tim "TRB143" Bentley\n'
u' Jonathan "gushie" Corwin\n' ' Jonathan "gushie" Corwin\n'
u' Michael "cocooncrash" Gorven\n' ' Michael "cocooncrash" Gorven\n'
u' Scott "sguerrieri" Guerrieri\n' ' Scott "sguerrieri" Guerrieri\n'
u' Raoul "superfly" Snyman\n' ' Raoul "superfly" Snyman\n'
u' Martin "mijiti" Thompson\n' ' Martin "mijiti" Thompson\n'
u' Jon "Meths" Tibble\n' ' Jon "Meths" Tibble\n'
u'\n' '\n'
u'Contributors\n' 'Contributors\n'
u' Meinert "m2j" Jordan\n' ' Meinert "m2j" Jordan\n'
u' Christian "crichter" Richter\n' ' Christian "crichter" Richter\n'
u' Maikel Stuivenberg\n' ' Maikel Stuivenberg\n'
u' Carsten "catini" Tingaard\n' ' Carsten "catini" Tingaard\n'
u'\n' '\n'
u'Testers\n' 'Testers\n'
u' Philip "Phill" Ridout\n' ' Philip "Phill" Ridout\n'
u' Wesley "wrst" Stout (lead)\n' ' Wesley "wrst" Stout (lead)\n'
u'\n' '\n'
u'Packagers\n' 'Packagers\n'
u' Thomas "tabthorpe" Abthorpe (FreeBSD)\n' ' Thomas "tabthorpe" Abthorpe (FreeBSD)\n'
u' Tim "TRB143" Bentley (Fedora)\n' ' Tim "TRB143" Bentley (Fedora)\n'
u' Michael "cocooncrash" Gorven (Ubuntu)\n' ' Michael "cocooncrash" Gorven (Ubuntu)\n'
u' Matthias "matthub" Hub (Mac OS X)\n' ' Matthias "matthub" Hub (Mac OS X)\n'
u' Raoul "superfly" Snyman (Windows)\n' ' Raoul "superfly" Snyman (Windows)\n'
)) ))
self.AboutNotebook.setTabText( self.AboutNotebook.setTabText(
self.AboutNotebook.indexOf(self.CreditsTab), self.AboutNotebook.indexOf(self.CreditsTab),
translate(u'AboutForm', u'Credits')) translate('AboutForm', 'Credits'))
self.LicenseTextEdit.setPlainText(translate(u'AboutForm', self.LicenseTextEdit.setPlainText(translate('AboutForm',
u'Copyright \xa9 2004-2010 Raoul Snyman\n' 'Copyright \xa9 2004-2010 Raoul Snyman\n'
u'Portions copyright \xa9 2004-2010 ' 'Portions copyright \xa9 2004-2010 '
u'Tim Bentley, Jonathan Corwin, Michael Gorven, Scott Guerrieri, ' 'Tim Bentley, Jonathan Corwin, Michael Gorven, Scott Guerrieri, '
u'Christian Richter, Maikel Stuivenberg, Martin Thompson, Jon ' 'Christian Richter, Maikel Stuivenberg, Martin Thompson, Jon '
u'Tibble, Carsten Tinggaard\n' 'Tibble, Carsten Tinggaard\n'
u'\n' '\n'
u'This program is free software; you can redistribute it and/or ' 'This program is free software; you can redistribute it and/or '
u'modify it under the terms of the GNU General Public License as ' 'modify it under the terms of the GNU General Public License as '
u'published by the Free Software Foundation; version 2 of the ' 'published by the Free Software Foundation; version 2 of the '
u'License.\n' 'License.\n'
u'\n' '\n'
u'This program is distributed in the hope that it will be useful, ' 'This program is distributed in the hope that it will be useful, '
u'but WITHOUT ANY WARRANTY; without even the implied warranty of ' 'but WITHOUT ANY WARRANTY; without even the implied warranty of '
u'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See below ' 'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See below '
u'for more details.\n' 'for more details.\n'
u'\n' '\n'
u'\n' '\n'
u'GNU GENERAL PUBLIC LICENSE\n' 'GNU GENERAL PUBLIC LICENSE\n'
u'Version 2, June 1991\n' 'Version 2, June 1991\n'
u'\n' '\n'
u'Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 ' 'Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 '
u'Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ' 'Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. '
u'Everyone is permitted to copy and distribute verbatim copies of ' 'Everyone is permitted to copy and distribute verbatim copies of '
u'this license document, but changing it is not allowed.\n' 'this license document, but changing it is not allowed.\n'
u'\n' '\n'
u'Preamble\n' 'Preamble\n'
u'\n' '\n'
u'The licenses for most software are designed to take away your ' 'The licenses for most software are designed to take away your '
u'freedom to share and change it. By contrast, the GNU General ' 'freedom to share and change it. By contrast, the GNU General '
u'Public License is intended to guarantee your freedom to share ' 'Public License is intended to guarantee your freedom to share '
u'and change free software--to make sure the software is free for ' 'and change free software--to make sure the software is free for '
u'all its users. This General Public License applies to most of ' 'all its users. This General Public License applies to most of '
u'the Free Software Foundation\'s software and to any other ' 'the Free Software Foundation\'s software and to any other '
u'program whose authors commit to using it. (Some other Free ' 'program whose authors commit to using it. (Some other Free '
u'Software Foundation software is covered by the GNU Lesser ' 'Software Foundation software is covered by the GNU Lesser '
u'General Public License instead.) You can apply it to your ' 'General Public License instead.) You can apply it to your '
u'programs, too.\n' 'programs, too.\n'
u'\n' '\n'
u'When we speak of free software, we are referring to freedom, not ' 'When we speak of free software, we are referring to freedom, not '
u'price. Our General Public Licenses are designed to make sure ' 'price. Our General Public Licenses are designed to make sure '
u'that you have the freedom to distribute copies of free software ' 'that you have the freedom to distribute copies of free software '
u'(and charge for this service if you wish), that you receive ' '(and charge for this service if you wish), that you receive '
u'source code or can get it if you want it, that you can change ' 'source code or can get it if you want it, that you can change '
u'the software or use pieces of it in new free programs; and that ' 'the software or use pieces of it in new free programs; and that '
u'you know you can do these things.\n' 'you know you can do these things.\n'
u'\n' '\n'
u'To protect your rights, we need to make restrictions that forbid ' 'To protect your rights, we need to make restrictions that forbid '
u'anyone to deny you these rights or to ask you to surrender the ' 'anyone to deny you these rights or to ask you to surrender the '
u'rights. These restrictions translate to certain responsibilities ' 'rights. These restrictions translate to certain responsibilities '
u'for you if you distribute copies of the software, or if you ' 'for you if you distribute copies of the software, or if you '
u'modify it.\n' 'modify it.\n'
u'\n' '\n'
u'For example, if you distribute copies of such a program, whether ' 'For example, if you distribute copies of such a program, whether '
u'gratis or for a fee, you must give the recipients all the rights ' 'gratis or for a fee, you must give the recipients all the rights '
u'that you have. You must make sure that they, too, receive or ' 'that you have. You must make sure that they, too, receive or '
u'can get the source code. And you must show them these terms so ' 'can get the source code. And you must show them these terms so '
u'they know their rights.\n' 'they know their rights.\n'
u'\n' '\n'
u'We protect your rights with two steps: (1) copyright the ' 'We protect your rights with two steps: (1) copyright the '
u'software, and (2) offer you this license which gives you legal ' 'software, and (2) offer you this license which gives you legal '
u'permission to copy, distribute and/or modify the software.\n' 'permission to copy, distribute and/or modify the software.\n'
u'\n' '\n'
u'Also, for each author\'s protection and ours, we want to make ' 'Also, for each author\'s protection and ours, we want to make '
u'certain that everyone understands that there is no warranty for ' 'certain that everyone understands that there is no warranty for '
u'this free software. If the software is modified by someone else ' 'this free software. If the software is modified by someone else '
u'and passed on, we want its recipients to know that what they ' 'and passed on, we want its recipients to know that what they '
u'have is not the original, so that any problems introduced by ' 'have is not the original, so that any problems introduced by '
u'others will not reflect on the original authors\' reputations.\n' 'others will not reflect on the original authors\' reputations.\n'
u'\n' '\n'
u'Finally, any free program is threatened constantly by software ' 'Finally, any free program is threatened constantly by software '
u'patents. We wish to avoid the danger that redistributors of a ' 'patents. We wish to avoid the danger that redistributors of a '
u'free program will individually obtain patent licenses, in effect ' 'free program will individually obtain patent licenses, in effect '
u'making the program proprietary. To prevent this, we have made ' 'making the program proprietary. To prevent this, we have made '
u'it clear that any patent must be licensed for everyone\'s free ' 'it clear that any patent must be licensed for everyone\'s free '
u'use or not licensed at all.\n' 'use or not licensed at all.\n'
u'\n' '\n'
u'The precise terms and conditions for copying, distribution and ' 'The precise terms and conditions for copying, distribution and '
u'modification follow.\n' 'modification follow.\n'
u'\n' '\n'
u'GNU GENERAL PUBLIC LICENSE\n' 'GNU GENERAL PUBLIC LICENSE\n'
u'TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n' 'TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n'
u'\n' '\n'
u'0. This License applies to any program or other work which ' '0. This License applies to any program or other work which '
u'contains a notice placed by the copyright holder saying it may ' 'contains a notice placed by the copyright holder saying it may '
u'be distributed under the terms of this General Public License. ' 'be distributed under the terms of this General Public License. '
u'The "Program", below, refers to any such program or work, and a ' 'The "Program", below, refers to any such program or work, and a '
u'"work based on the Program" means either the Program or any ' '"work based on the Program" means either the Program or any '
u'derivative work under copyright law: that is to say, a work ' 'derivative work under copyright law: that is to say, a work '
u'containing the Program or a portion of it, either verbatim or ' 'containing the Program or a portion of it, either verbatim or '
u'with modifications and/or translated into another language. ' 'with modifications and/or translated into another language. '
u'(Hereinafter, translation is included without limitation in the ' '(Hereinafter, translation is included without limitation in the '
u'term "modification".) Each licensee is addressed as "you".\n' 'term "modification".) Each licensee is addressed as "you".\n'
u'\n' '\n'
u'Activities other than copying, distribution and modification are ' 'Activities other than copying, distribution and modification are '
u'not covered by this License; they are outside its scope. The ' 'not covered by this License; they are outside its scope. The '
u'act of running the Program is not restricted, and the output ' 'act of running the Program is not restricted, and the output '
u'from the Program is covered only if its contents constitute a ' 'from the Program is covered only if its contents constitute a '
u'work based on the Program (independent of having been made by ' 'work based on the Program (independent of having been made by '
u'running the Program). Whether that is true depends on what the ' 'running the Program). Whether that is true depends on what the '
u'Program does.\n' 'Program does.\n'
u'\n' '\n'
u'1. You may copy and distribute verbatim copies of the Program\'s ' '1. You may copy and distribute verbatim copies of the Program\'s '
u'source code as you receive it, in any medium, provided that you ' 'source code as you receive it, in any medium, provided that you '
u'conspicuously and appropriately publish on each copy an ' 'conspicuously and appropriately publish on each copy an '
u'appropriate copyright notice and disclaimer of warranty; keep ' 'appropriate copyright notice and disclaimer of warranty; keep '
u'intact all the notices that refer to this License and to the ' 'intact all the notices that refer to this License and to the '
u'absence of any warranty; and give any other recipients of the ' 'absence of any warranty; and give any other recipients of the '
u'Program a copy of this License along with the Program.\n' 'Program a copy of this License along with the Program.\n'
u'\n' '\n'
u'You may charge a fee for the physical act of transferring a ' 'You may charge a fee for the physical act of transferring a '
u'copy, and you may at your option offer warranty protection in ' 'copy, and you may at your option offer warranty protection in '
u'exchange for a fee.\n' 'exchange for a fee.\n'
u'\n' '\n'
u'2. You may modify your copy or copies of the Program or any ' '2. You may modify your copy or copies of the Program or any '
u'portion of it, thus forming a work based on the Program, and ' 'portion of it, thus forming a work based on the Program, and '
u'copy and distribute such modifications or work under the terms ' 'copy and distribute such modifications or work under the terms '
u'of Section 1 above, provided that you also meet all of these ' 'of Section 1 above, provided that you also meet all of these '
u'conditions:\n' 'conditions:\n'
u'\n' '\n'
u'a) You must cause the modified files to carry prominent notices ' 'a) You must cause the modified files to carry prominent notices '
u'stating that you changed the files and the date of any change.\n' 'stating that you changed the files and the date of any change.\n'
u'\n' '\n'
u'b) You must cause any work that you distribute or publish, that ' 'b) You must cause any work that you distribute or publish, that '
u'in whole or in part contains or is derived from the Program or ' 'in whole or in part contains or is derived from the Program or '
u'any part thereof, to be licensed as a whole at no charge to all ' 'any part thereof, to be licensed as a whole at no charge to all '
u'third parties under the terms of this License.\n' 'third parties under the terms of this License.\n'
u'\n' '\n'
u'c) If the modified program normally reads commands interactively ' 'c) If the modified program normally reads commands interactively '
u'when run, you must cause it, when started running for such ' 'when run, you must cause it, when started running for such '
u'interactive use in the most ordinary way, to print or display an ' 'interactive use in the most ordinary way, to print or display an '
u'announcement including an appropriate copyright notice and a ' 'announcement including an appropriate copyright notice and a '
u'notice that there is no warranty (or else, saying that you ' 'notice that there is no warranty (or else, saying that you '
u'provide a warranty) and that users may redistribute the program ' 'provide a warranty) and that users may redistribute the program '
u'under these conditions, and telling the user how to view a copy ' 'under these conditions, and telling the user how to view a copy '
u'of this License. (Exception: if the Program itself is ' 'of this License. (Exception: if the Program itself is '
u'interactive but does not normally print such an announcement, ' 'interactive but does not normally print such an announcement, '
u'your work based on the Program is not required to print an ' 'your work based on the Program is not required to print an '
u'announcement.)\n' 'announcement.)\n'
u'\n' '\n'
u'These requirements apply to the modified work as a whole. If ' 'These requirements apply to the modified work as a whole. If '
u'identifiable sections of that work are not derived from the ' 'identifiable sections of that work are not derived from the '
u'Program, and can be reasonably considered independent and ' 'Program, and can be reasonably considered independent and '
u'separate works in themselves, then this License, and its terms, ' 'separate works in themselves, then this License, and its terms, '
u'do not apply to those sections when you distribute them as ' 'do not apply to those sections when you distribute them as '
u'separate works. But when you distribute the same sections as ' 'separate works. But when you distribute the same sections as '
u'part of a whole which is a work based on the Program, the ' 'part of a whole which is a work based on the Program, the '
u'distribution of the whole must be on the terms of this License, ' 'distribution of the whole must be on the terms of this License, '
u'whose permissions for other licensees extend to the entire ' 'whose permissions for other licensees extend to the entire '
u'whole, and thus to each and every part regardless of who wrote ' 'whole, and thus to each and every part regardless of who wrote '
u'it.\n' 'it.\n'
u'\n' '\n'
u'Thus, it is not the intent of this section to claim rights or ' 'Thus, it is not the intent of this section to claim rights or '
u'contest your rights to work written entirely by you; rather, the ' 'contest your rights to work written entirely by you; rather, the '
u'intent is to exercise the right to control the distribution of ' 'intent is to exercise the right to control the distribution of '
u'derivative or collective works based on the Program.\n' 'derivative or collective works based on the Program.\n'
u'\n' '\n'
u'In addition, mere aggregation of another work not based on the ' 'In addition, mere aggregation of another work not based on the '
u'Program with the Program (or with a work based on the Program) ' 'Program with the Program (or with a work based on the Program) '
u'on a volume of a storage or distribution medium does not bring ' 'on a volume of a storage or distribution medium does not bring '
u'the other work under the scope of this License.\n' 'the other work under the scope of this License.\n'
u'\n' '\n'
u'3. You may copy and distribute the Program (or a work based on ' '3. You may copy and distribute the Program (or a work based on '
u'it, under Section 2) in object code or executable form under the ' 'it, under Section 2) in object code or executable form under the '
u'terms of Sections 1 and 2 above provided that you also do one of ' 'terms of Sections 1 and 2 above provided that you also do one of '
u'the following:\n' 'the following:\n'
u'\n' '\n'
u'a) Accompany it with the complete corresponding machine-readable ' 'a) Accompany it with the complete corresponding machine-readable '
u'source code, which must be distributed under the terms of ' 'source code, which must be distributed under the terms of '
u'Sections 1 and 2 above on a medium customarily used for software ' 'Sections 1 and 2 above on a medium customarily used for software '
u'interchange; or,\n' 'interchange; or,\n'
u'\n' '\n'
u'b) Accompany it with a written offer, valid for at least three ' 'b) Accompany it with a written offer, valid for at least three '
u'years, to give any third party, for a charge no more than your ' 'years, to give any third party, for a charge no more than your '
u'cost of physically performing source distribution, a complete ' 'cost of physically performing source distribution, a complete '
u'machine-readable copy of the corresponding source code, to be ' 'machine-readable copy of the corresponding source code, to be '
u'distributed under the terms of Sections 1 and 2 above on a ' 'distributed under the terms of Sections 1 and 2 above on a '
u'medium customarily used for software interchange; or,\n' 'medium customarily used for software interchange; or,\n'
u'\n' '\n'
u'c) Accompany it with the information you received as to the ' 'c) Accompany it with the information you received as to the '
u'offer to distribute corresponding source code. (This ' 'offer to distribute corresponding source code. (This '
u'alternative is allowed only for noncommercial distribution and ' 'alternative is allowed only for noncommercial distribution and '
u'only if you received the program in object code or executable ' 'only if you received the program in object code or executable '
u'form with such an offer, in accord with Subsection b above.)\n' 'form with such an offer, in accord with Subsection b above.)\n'
u'\n' '\n'
u'The source code for a work means the preferred form of the work ' 'The source code for a work means the preferred form of the work '
u'for making modifications to it. For an executable work, ' 'for making modifications to it. For an executable work, '
u'complete source code means all the source code for all modules ' 'complete source code means all the source code for all modules '
u'it contains, plus any associated interface definition files, ' 'it contains, plus any associated interface definition files, '
u'plus the scripts used to control compilation and installation of ' 'plus the scripts used to control compilation and installation of '
u'the executable. However, as a special exception, the source ' 'the executable. However, as a special exception, the source '
u'code distributed need not include anything that is normally ' 'code distributed need not include anything that is normally '
u'distributed (in either source or binary form) with the major ' 'distributed (in either source or binary form) with the major '
u'components (compiler, kernel, and so on) of the operating system ' 'components (compiler, kernel, and so on) of the operating system '
u'on which the executable runs, unless that component itself ' 'on which the executable runs, unless that component itself '
u'accompanies the executable.\n' 'accompanies the executable.\n'
u'\n' '\n'
u'If distribution of executable or object code is made by offering ' 'If distribution of executable or object code is made by offering '
u'access to copy from a designated place, then offering equivalent ' 'access to copy from a designated place, then offering equivalent '
u'access to copy the source code from the same place counts as ' 'access to copy the source code from the same place counts as '
u'distribution of the source code, even though third parties are ' 'distribution of the source code, even though third parties are '
u'not compelled to copy the source along with the object code.\n' 'not compelled to copy the source along with the object code.\n'
u'\n' '\n'
u'4. You may not copy, modify, sublicense, or distribute the ' '4. You may not copy, modify, sublicense, or distribute the '
u'Program except as expressly provided under this License. Any ' 'Program except as expressly provided under this License. Any '
u'attempt otherwise to copy, modify, sublicense or distribute the ' 'attempt otherwise to copy, modify, sublicense or distribute the '
u'Program is void, and will automatically terminate your rights ' 'Program is void, and will automatically terminate your rights '
u'under this License. However, parties who have received copies, ' 'under this License. However, parties who have received copies, '
u'or rights, from you under this License will not have their ' 'or rights, from you under this License will not have their '
u'licenses terminated so long as such parties remain in full ' 'licenses terminated so long as such parties remain in full '
u'compliance.\n' 'compliance.\n'
u'\n' '\n'
u'5. You are not required to accept this License, since you have ' '5. You are not required to accept this License, since you have '
u'not signed it. However, nothing else grants you permission to ' 'not signed it. However, nothing else grants you permission to '
u'modify or distribute the Program or its derivative works. These ' 'modify or distribute the Program or its derivative works. These '
u'actions are prohibited by law if you do not accept this ' 'actions are prohibited by law if you do not accept this '
u'License. Therefore, by modifying or distributing the Program ' 'License. Therefore, by modifying or distributing the Program '
u'(or any work based on the Program), you indicate your acceptance ' '(or any work based on the Program), you indicate your acceptance '
u'of this License to do so, and all its terms and conditions for ' 'of this License to do so, and all its terms and conditions for '
u'copying, distributing or modifying the Program or works based on ' 'copying, distributing or modifying the Program or works based on '
u'it.\n' 'it.\n'
u'\n' '\n'
u'6. Each time you redistribute the Program (or any work based on ' '6. Each time you redistribute the Program (or any work based on '
u'the Program), the recipient automatically receives a license ' 'the Program), the recipient automatically receives a license '
u'from the original licensor to copy, distribute or modify the ' 'from the original licensor to copy, distribute or modify the '
u'Program subject to these terms and conditions. You may not ' 'Program subject to these terms and conditions. You may not '
u'impose any further restrictions on the recipients\' exercise of ' 'impose any further restrictions on the recipients\' exercise of '
u'the rights granted herein. You are not responsible for enforcing ' 'the rights granted herein. You are not responsible for enforcing '
u'compliance by third parties to this License.\n' 'compliance by third parties to this License.\n'
u'\n' '\n'
u'7. If, as a consequence of a court judgment or allegation of ' '7. If, as a consequence of a court judgment or allegation of '
u'patent infringement or for any other reason (not limited to ' 'patent infringement or for any other reason (not limited to '
u'patent issues), conditions are imposed on you (whether by court ' 'patent issues), conditions are imposed on you (whether by court '
u'order, agreement or otherwise) that contradict the conditions of ' 'order, agreement or otherwise) that contradict the conditions of '
u'this License, they do not excuse you from the conditions of this ' 'this License, they do not excuse you from the conditions of this '
u'License. If you cannot distribute so as to satisfy ' 'License. If you cannot distribute so as to satisfy '
u'simultaneously your obligations under this License and any other ' 'simultaneously your obligations under this License and any other '
u'pertinent obligations, then as a consequence you may not ' 'pertinent obligations, then as a consequence you may not '
u'distribute the Program at all. For example, if a patent license ' 'distribute the Program at all. For example, if a patent license '
u'would not permit royalty-free redistribution of the Program by ' 'would not permit royalty-free redistribution of the Program by '
u'all those who receive copies directly or indirectly through you, ' 'all those who receive copies directly or indirectly through you, '
u'then the only way you could satisfy both it and this License ' 'then the only way you could satisfy both it and this License '
u'would be to refrain entirely from distribution of the Program.\n' 'would be to refrain entirely from distribution of the Program.\n'
u'\n' '\n'
u'If any portion of this section is held invalid or unenforceable ' 'If any portion of this section is held invalid or unenforceable '
u'under any particular circumstance, the balance of the section is ' 'under any particular circumstance, the balance of the section is '
u'intended to apply and the section as a whole is intended to ' 'intended to apply and the section as a whole is intended to '
u'apply in other circumstances.\n' 'apply in other circumstances.\n'
u'\n' '\n'
u'It is not the purpose of this section to induce you to infringe ' 'It is not the purpose of this section to induce you to infringe '
u'any patents or other property right claims or to contest ' 'any patents or other property right claims or to contest '
u'validity of any such claims; this section has the sole purpose ' 'validity of any such claims; this section has the sole purpose '
u'of protecting the integrity of the free software distribution ' 'of protecting the integrity of the free software distribution '
u'system, which is implemented by public license practices. Many ' 'system, which is implemented by public license practices. Many '
u'people have made generous contributions to the wide range of ' 'people have made generous contributions to the wide range of '
u'software distributed through that system in reliance on ' 'software distributed through that system in reliance on '
u'consistent application of that system; it is up to the ' 'consistent application of that system; it is up to the '
u'author/donor to decide if he or she is willing to distribute ' 'author/donor to decide if he or she is willing to distribute '
u'software through any other system and a licensee cannot impose ' 'software through any other system and a licensee cannot impose '
u'that choice.\n' 'that choice.\n'
u'\n' '\n'
u'This section is intended to make thoroughly clear what is ' 'This section is intended to make thoroughly clear what is '
u'believed to be a consequence of the rest of this License.\n' 'believed to be a consequence of the rest of this License.\n'
u'\n' '\n'
u'8. If the distribution and/or use of the Program is restricted ' '8. If the distribution and/or use of the Program is restricted '
u'in certain countries either by patents or by copyrighted ' 'in certain countries either by patents or by copyrighted '
u'interfaces, the original copyright holder who places the Program ' 'interfaces, the original copyright holder who places the Program '
u'under this License may add an explicit geographical distribution ' 'under this License may add an explicit geographical distribution '
u'limitation excluding those countries, so that distribution is ' 'limitation excluding those countries, so that distribution is '
u'permitted only in or among countries not thus excluded. In such ' 'permitted only in or among countries not thus excluded. In such '
u'case, this License incorporates the limitation as if written in ' 'case, this License incorporates the limitation as if written in '
u'the body of this License.\n' 'the body of this License.\n'
u'\n' '\n'
u'9. The Free Software Foundation may publish revised and/or new ' '9. The Free Software Foundation may publish revised and/or new '
u'versions of the General Public License from time to time. Such ' 'versions of the General Public License from time to time. Such '
u'new versions will be similar in spirit to the present version, ' 'new versions will be similar in spirit to the present version, '
u'but may differ in detail to address new problems or concerns.\n' 'but may differ in detail to address new problems or concerns.\n'
u'\n' '\n'
u'Each version is given a distinguishing version number. If the ' 'Each version is given a distinguishing version number. If the '
u'Program specifies a version number of this License which applies ' 'Program specifies a version number of this License which applies '
u'to it and \"any later version\', you have the option of ' 'to it and \"any later version\', you have the option of '
u'following the terms and conditions either of that version or of ' 'following the terms and conditions either of that version or of '
u'any later version published by the Free Software Foundation. If ' 'any later version published by the Free Software Foundation. If '
u'the Program does not specify a version number of this License, ' 'the Program does not specify a version number of this License, '
u'you may choose any version ever published by the Free Software ' 'you may choose any version ever published by the Free Software '
u'Foundation.\n' 'Foundation.\n'
u'\n' '\n'
u'10. If you wish to incorporate parts of the Program into other ' '10. If you wish to incorporate parts of the Program into other '
u'free programs whose distribution conditions are different, write ' 'free programs whose distribution conditions are different, write '
u'to the author to ask for permission. For software which is ' 'to the author to ask for permission. For software which is '
u'copyrighted by the Free Software Foundation, write to the Free ' 'copyrighted by the Free Software Foundation, write to the Free '
u'Software Foundation; we sometimes make exceptions for this. Our ' 'Software Foundation; we sometimes make exceptions for this. Our '
u'decision will be guided by the two goals of preserving the free ' 'decision will be guided by the two goals of preserving the free '
u'status of all derivatives of our free software and of promoting ' 'status of all derivatives of our free software and of promoting '
u'the sharing and reuse of software generally.\n' 'the sharing and reuse of software generally.\n'
u'\n' '\n'
u'NO WARRANTY\n' 'NO WARRANTY\n'
u'\n' '\n'
u'11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO ' '11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO '
u'WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE ' 'WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE '
u'LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT ' 'LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT '
u'HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT ' 'HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT '
u'WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, ' 'WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, '
u'BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY ' 'BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY '
u'AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE ' 'AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE '
u'QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE ' 'QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE '
u'PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY ' 'PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY '
u'SERVICING, REPAIR OR CORRECTION.\n' 'SERVICING, REPAIR OR CORRECTION.\n'
u'\n' '\n'
u'12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO ' '12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO '
u'IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY ' 'IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY '
u'MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE ' 'MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE '
u'LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, ' 'LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, '
u'INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR ' 'INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR '
u'INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS ' 'INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS '
u'OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY ' 'OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY '
u'YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ' 'YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH '
u'ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ' 'ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN '
u'ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n' 'ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n'
u'\n' '\n'
u'END OF TERMS AND CONDITIONS\n' 'END OF TERMS AND CONDITIONS\n'
u'\n' '\n'
u'How to Apply These Terms to Your New Programs\n' 'How to Apply These Terms to Your New Programs\n'
u'\n' '\n'
u'If you develop a new program, and you want it to be of the ' 'If you develop a new program, and you want it to be of the '
u'greatest possible use to the public, the best way to achieve ' 'greatest possible use to the public, the best way to achieve '
u'this is to make it free software which everyone can redistribute ' 'this is to make it free software which everyone can redistribute '
u'and change under these terms.\n' 'and change under these terms.\n'
u'\n' '\n'
u'To do so, attach the following notices to the program. It is ' 'To do so, attach the following notices to the program. It is '
u'safest to attach them to the start of each source file to most ' 'safest to attach them to the start of each source file to most '
u'effectively convey the exclusion of warranty; and each file ' 'effectively convey the exclusion of warranty; and each file '
u'should have at least the "copyright" line and a pointer to where ' 'should have at least the "copyright" line and a pointer to where '
u'the full notice is found.\n' 'the full notice is found.\n'
u'\n' '\n'
u'<one line to give the program\'s name and a brief idea of what ' '<one line to give the program\'s name and a brief idea of what '
u'it does.>\n' 'it does.>\n'
u'Copyright (C) <year> <name of author>\n' 'Copyright (C) <year> <name of author>\n'
u'\n' '\n'
u'This program is free software; you can redistribute it and/or ' 'This program is free software; you can redistribute it and/or '
u'modify it under the terms of the GNU General Public License as ' 'modify it under the terms of the GNU General Public License as '
u'published by the Free Software Foundation; either version 2 of ' 'published by the Free Software Foundation; either version 2 of '
u'the License, or (at your option) any later version.\n' 'the License, or (at your option) any later version.\n'
u'\n' '\n'
u'This program is distributed in the hope that it will be useful, ' 'This program is distributed in the hope that it will be useful, '
u'but WITHOUT ANY WARRANTY; without even the implied warranty of ' 'but WITHOUT ANY WARRANTY; without even the implied warranty of '
u'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ' 'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the '
u'GNU General Public License for more details.\n' 'GNU General Public License for more details.\n'
u'\n' '\n'
u'You should have received a copy of the GNU General Public ' 'You should have received a copy of the GNU General Public '
u'License along with this program; if not, write to the Free ' 'License along with this program; if not, write to the Free '
u'Software Foundation, Inc., 51 Franklin Street, Fifth Floor, ' 'Software Foundation, Inc., 51 Franklin Street, Fifth Floor, '
u'Boston, MA 02110-1301 USA.\n' 'Boston, MA 02110-1301 USA.\n'
u'\n' '\n'
u'Also add information on how to contact you by electronic and ' 'Also add information on how to contact you by electronic and '
u'paper mail.\n' 'paper mail.\n'
u'\n' '\n'
u'If the program is interactive, make it output a short notice ' 'If the program is interactive, make it output a short notice '
u'like this when it starts in an interactive mode:\n' 'like this when it starts in an interactive mode:\n'
u'\n' '\n'
u'Gnomovision version 69, Copyright (C) year name of author\n' 'Gnomovision version 69, Copyright (C) year name of author\n'
u'Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type ' 'Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type '
u'"show w".\n' '"show w".\n'
u'This is free software, and you are welcome to redistribute it ' 'This is free software, and you are welcome to redistribute it '
u'under certain conditions; type "show c" for details.\n' 'under certain conditions; type "show c" for details.\n'
u'\n' '\n'
u'The hypothetical commands "show w" and "show c" should show ' 'The hypothetical commands "show w" and "show c" should show '
u'the appropriate parts of the General Public License. Of course, ' 'the appropriate parts of the General Public License. Of course, '
u'the commands you use may be called something other than "show ' 'the commands you use may be called something other than "show '
u'w" and "show c"; they could even be mouse-clicks or menu items--' 'w" and "show c"; they could even be mouse-clicks or menu items--'
u'whatever suits your program.\n' 'whatever suits your program.\n'
u'\n' '\n'
u'You should also get your employer (if you work as a programmer) ' 'You should also get your employer (if you work as a programmer) '
u'or your school, if any, to sign a "copyright disclaimer" for the ' 'or your school, if any, to sign a "copyright disclaimer" for the '
u'program, if necessary. Here is a sample; alter the names:\n' 'program, if necessary. Here is a sample; alter the names:\n'
u'\n' '\n'
u'Yoyodyne, Inc., hereby disclaims all copyright interest in the ' 'Yoyodyne, Inc., hereby disclaims all copyright interest in the '
u'program "Gnomovision" (which makes passes at compilers) written ' 'program "Gnomovision" (which makes passes at compilers) written '
u'by James Hacker.\n' 'by James Hacker.\n'
u'\n' '\n'
u'<signature of Ty Coon>, 1 April 1989\n' '<signature of Ty Coon>, 1 April 1989\n'
u'Ty Coon, President of Vice\n' 'Ty Coon, President of Vice\n'
u'\n' '\n'
u'This General Public License does not permit incorporating your ' 'This General Public License does not permit incorporating your '
u'program into proprietary programs. If your program is a ' 'program into proprietary programs. If your program is a '
u'subroutine library, you may consider it more useful to permit ' 'subroutine library, you may consider it more useful to permit '
u'linking proprietary applications with the library. If this is ' 'linking proprietary applications with the library. If this is '
u'what you want to do, use the GNU Lesser General Public License ' 'what you want to do, use the GNU Lesser General Public License '
u'instead of this License.')) 'instead of this License.'))
self.AboutNotebook.setTabText( self.AboutNotebook.setTabText(
self.AboutNotebook.indexOf(self.LicenseTab), self.AboutNotebook.indexOf(self.LicenseTab),
translate(u'AboutForm', u'License')) translate('AboutForm', 'License'))
self.ContributeButton.setText(translate(u'AboutForm', u'Contribute')) self.ContributeButton.setText(translate('AboutForm', 'Contribute'))
self.CloseButton.setText(translate(u'AboutForm', u'Close')) self.CloseButton.setText(translate('AboutForm', 'Close'))

View File

@ -44,7 +44,7 @@ class AboutForm(QtGui.QDialog, Ui_AboutDialog):
about_text = about_text.replace(u'<version>', about_text = about_text.replace(u'<version>',
self.applicationVersion[u'version']) self.applicationVersion[u'version'])
if self.applicationVersion[u'build']: if self.applicationVersion[u'build']:
build_text = unicode(translate(u'AboutForm', u' build %s')) % \ build_text = unicode(translate('AboutForm', ' build %s')) % \
self.applicationVersion[u'build'] self.applicationVersion[u'build']
else: else:
build_text = u'' build_text = u''

View File

@ -42,7 +42,7 @@ class DisplayTab(SettingsTab):
""" """
Set up the UI widgets to show the settings Set up the UI widgets to show the settings
""" """
self.tabTitleVisible = translate(u'DisplayTab', u'Displays') self.tabTitleVisible = translate('DisplayTab', 'Displays')
self.layoutWidget = QtGui.QWidget(self) self.layoutWidget = QtGui.QWidget(self)
self.layoutWidget.setGeometry(QtCore.QRect(0, 40, 241, 79)) self.layoutWidget.setGeometry(QtCore.QRect(0, 40, 241, 79))
self.layoutWidget.setObjectName(u'layoutWidget') self.layoutWidget.setObjectName(u'layoutWidget')
@ -164,25 +164,25 @@ class DisplayTab(SettingsTab):
""" """
Provide i18n support for this UI Provide i18n support for this UI
""" """
self.setWindowTitle(translate(u'DisplayTab', u'Amend Display Settings')) self.setWindowTitle(translate('DisplayTab', 'Amend Display Settings'))
self.CurrentGroupBox.setTitle( self.CurrentGroupBox.setTitle(
translate(u'DisplayTab', u'Default Settings')) translate('DisplayTab', 'Default Settings'))
self.XLabel.setText(translate(u'DisplayTab', u'X')) self.XLabel.setText(translate('DisplayTab', 'X'))
self.Xpos.setText(u'0') self.Xpos.setText(u'0')
self.YLabel.setText(translate(u'DisplayTab', u'Y')) self.YLabel.setText(translate('DisplayTab', 'Y'))
self.Ypos.setText(u'0') self.Ypos.setText(u'0')
self.HeightLabel.setText(translate(u'DisplayTab', u'Height')) self.HeightLabel.setText(translate('DisplayTab', 'Height'))
self.Height.setText(u'0') self.Height.setText(u'0')
self.WidthLabel.setText(translate(u'DisplayTab', u'Width')) self.WidthLabel.setText(translate('DisplayTab', 'Width'))
self.Width.setText(u'0') self.Width.setText(u'0')
self.CurrentGroupBox_2.setTitle( self.CurrentGroupBox_2.setTitle(
translate(u'DisplayTab', u'Amend Settings')) translate('DisplayTab', 'Amend Settings'))
self.XAmendLabel.setText(translate(u'DisplayTab', u'X')) self.XAmendLabel.setText(translate('DisplayTab', 'X'))
self.YAmendLabel.setText(translate(u'DisplayTab', u'Y')) self.YAmendLabel.setText(translate('DisplayTab', 'Y'))
self.HeightAmendLabel.setText(translate(u'DisplayTab', u'Height')) self.HeightAmendLabel.setText(translate('DisplayTab', 'Height'))
self.WidthAmendLabel.setText(translate(u'DisplayTab', u'Width')) self.WidthAmendLabel.setText(translate('DisplayTab', 'Width'))
self.OverrideCheckBox.setText( self.OverrideCheckBox.setText(
translate(u'DisplayTab', u'Override Output Display')) translate('DisplayTab', 'Override Output Display'))
def load(self): def load(self):
""" """

View File

@ -54,7 +54,7 @@ class GeneralTab(SettingsTab):
def setupUi(self): def setupUi(self):
self.setObjectName(u'GeneralTab') self.setObjectName(u'GeneralTab')
self.tabTitleVisible = translate(u'GeneralTab', u'General') self.tabTitleVisible = translate('GeneralTab', 'General')
self.GeneralLayout = QtGui.QHBoxLayout(self) self.GeneralLayout = QtGui.QHBoxLayout(self)
self.GeneralLayout.setSpacing(8) self.GeneralLayout.setSpacing(8)
self.GeneralLayout.setMargin(8) self.GeneralLayout.setMargin(8)
@ -177,32 +177,32 @@ class GeneralTab(SettingsTab):
QtCore.SIGNAL(u'editingFinished()'), self.onPasswordEditLostFocus) QtCore.SIGNAL(u'editingFinished()'), self.onPasswordEditLostFocus)
def retranslateUi(self): def retranslateUi(self):
self.MonitorGroupBox.setTitle(translate(u'GeneralTab', u'Monitors')) self.MonitorGroupBox.setTitle(translate('GeneralTab', 'Monitors'))
self.MonitorLabel.setText( self.MonitorLabel.setText(
translate(u'GeneralTab', u'Select monitor for output display:')) translate('GeneralTab', 'Select monitor for output display:'))
self.DisplayOnMonitorCheck.setText( self.DisplayOnMonitorCheck.setText(
translate(u'GeneralTab', u'Display if a single screen')) translate('GeneralTab', 'Display if a single screen'))
self.StartupGroupBox.setTitle( self.StartupGroupBox.setTitle(
translate(u'GeneralTab', u'Application Startup')) translate('GeneralTab', 'Application Startup'))
self.WarningCheckBox.setText( self.WarningCheckBox.setText(
translate(u'GeneralTab', u'Show blank screen warning')) translate('GeneralTab', 'Show blank screen warning'))
self.AutoOpenCheckBox.setText( self.AutoOpenCheckBox.setText(
translate(u'GeneralTab', u'Automatically open the last service')) translate('GeneralTab', 'Automatically open the last service'))
self.ShowSplashCheckBox.setText( self.ShowSplashCheckBox.setText(
translate(u'GeneralTab', u'Show the splash screen')) translate('GeneralTab', 'Show the splash screen'))
self.SettingsGroupBox.setTitle( self.SettingsGroupBox.setTitle(
translate(u'GeneralTab', u'Application Settings')) translate('GeneralTab', 'Application Settings'))
self.SaveCheckServiceCheckBox.setText( self.SaveCheckServiceCheckBox.setText(
translate(u'GeneralTab', translate('GeneralTab',
u'Prompt to save Service before starting New')) 'Prompt to save Service before starting New'))
self.AutoPreviewCheckBox.setText( self.AutoPreviewCheckBox.setText(
translate(u'GeneralTab', u'Preview Next Song from Service Manager')) translate('GeneralTab', 'Preview Next Song from Service Manager'))
self.CCLIGroupBox.setTitle(translate(u'GeneralTab', u'CCLI Details')) self.CCLIGroupBox.setTitle(translate('GeneralTab', 'CCLI Details'))
self.NumberLabel.setText(translate(u'GeneralTab', u'CCLI Number:')) self.NumberLabel.setText(translate('GeneralTab', 'CCLI Number:'))
self.UsernameLabel.setText( self.UsernameLabel.setText(
translate(u'GeneralTab', u'SongSelect Username:')) translate('GeneralTab', 'SongSelect Username:'))
self.PasswordLabel.setText( self.PasswordLabel.setText(
translate(u'GeneralTab', u'SongSelect Password:')) translate('GeneralTab', 'SongSelect Password:'))
def onMonitorComboBoxChanged(self): def onMonitorComboBoxChanged(self):
self.MonitorNumber = self.MonitorComboBox.currentIndex() self.MonitorNumber = self.MonitorComboBox.currentIndex()
@ -238,11 +238,11 @@ class GeneralTab(SettingsTab):
settings = QtCore.QSettings() settings = QtCore.QSettings()
settings.beginGroup(self.settingsSection) settings.beginGroup(self.settingsSection)
for screen in self.screens.screen_list: for screen in self.screens.screen_list:
screen_name = u'%s %d' % (translate(u'GeneralTab', u'Screen'), screen_name = u'%s %d' % (translate('GeneralTab', 'Screen'),
screen[u'number'] + 1) screen[u'number'] + 1)
if screen[u'primary']: if screen[u'primary']:
screen_name = u'%s (%s)' % (screen_name, screen_name = u'%s (%s)' % (screen_name,
translate(u'GeneralTab', u'primary')) translate('GeneralTab', 'primary'))
self.MonitorComboBox.addItem(screen_name) self.MonitorComboBox.addItem(screen_name)
# Get the configs # Get the configs
self.Warning = settings.value( self.Warning = settings.value(

View File

@ -354,113 +354,113 @@ class Ui_MainWindow(object):
""" """
Set up the translation system Set up the translation system
""" """
MainWindow.mainTitle = translate(u'MainWindow', u'OpenLP 2.0') MainWindow.mainTitle = translate('MainWindow', 'OpenLP 2.0')
MainWindow.language = translate(u'MainWindow', u'English') MainWindow.language = translate('MainWindow', 'English')
MainWindow.defaultThemeText = translate(u'MainWindow', MainWindow.defaultThemeText = translate('MainWindow',
u'Default Theme: ') 'Default Theme: ')
MainWindow.setWindowTitle(MainWindow.mainTitle) MainWindow.setWindowTitle(MainWindow.mainTitle)
self.FileMenu.setTitle(translate(u'MainWindow', u'&File')) self.FileMenu.setTitle(translate('MainWindow', '&File'))
self.FileImportMenu.setTitle(translate(u'MainWindow', u'&Import')) self.FileImportMenu.setTitle(translate('MainWindow', '&Import'))
self.FileExportMenu.setTitle(translate(u'MainWindow', u'&Export')) self.FileExportMenu.setTitle(translate('MainWindow', '&Export'))
self.OptionsMenu.setTitle(translate(u'MainWindow', u'&Options')) self.OptionsMenu.setTitle(translate('MainWindow', '&Options'))
self.OptionsViewMenu.setTitle(translate(u'MainWindow', u'&View')) self.OptionsViewMenu.setTitle(translate('MainWindow', '&View'))
self.ViewModeMenu.setTitle(translate(u'MainWindow', u'M&ode')) self.ViewModeMenu.setTitle(translate('MainWindow', 'M&ode'))
self.OptionsLanguageMenu.setTitle(translate(u'MainWindow', self.OptionsLanguageMenu.setTitle(translate('MainWindow',
u'&Language')) '&Language'))
self.ToolsMenu.setTitle(translate(u'MainWindow', u'&Tools')) self.ToolsMenu.setTitle(translate('MainWindow', '&Tools'))
self.HelpMenu.setTitle(translate(u'MainWindow', u'&Help')) self.HelpMenu.setTitle(translate('MainWindow', '&Help'))
self.MediaManagerDock.setWindowTitle( self.MediaManagerDock.setWindowTitle(
translate(u'MainWindow', u'Media Manager')) translate('MainWindow', 'Media Manager'))
self.ServiceManagerDock.setWindowTitle( self.ServiceManagerDock.setWindowTitle(
translate(u'MainWindow', u'Service Manager')) translate('MainWindow', 'Service Manager'))
self.ThemeManagerDock.setWindowTitle( self.ThemeManagerDock.setWindowTitle(
translate(u'MainWindow', u'Theme Manager')) translate('MainWindow', 'Theme Manager'))
self.FileNewItem.setText(translate(u'MainWindow', u'&New')) self.FileNewItem.setText(translate('MainWindow', '&New'))
self.FileNewItem.setToolTip(translate(u'MainWindow', u'New Service')) self.FileNewItem.setToolTip(translate('MainWindow', 'New Service'))
self.FileNewItem.setStatusTip( self.FileNewItem.setStatusTip(
translate(u'MainWindow', u'Create a new Service')) translate('MainWindow', 'Create a new Service'))
self.FileNewItem.setShortcut(translate(u'MainWindow', u'Ctrl+N')) self.FileNewItem.setShortcut(translate('MainWindow', 'Ctrl+N'))
self.FileOpenItem.setText(translate(u'MainWindow', u'&Open')) self.FileOpenItem.setText(translate('MainWindow', '&Open'))
self.FileOpenItem.setToolTip(translate(u'MainWindow', u'Open Service')) self.FileOpenItem.setToolTip(translate('MainWindow', 'Open Service'))
self.FileOpenItem.setStatusTip( self.FileOpenItem.setStatusTip(
translate(u'MainWindow', u'Open an existing service')) translate('MainWindow', 'Open an existing service'))
self.FileOpenItem.setShortcut(translate(u'MainWindow', u'Ctrl+O')) self.FileOpenItem.setShortcut(translate('MainWindow', 'Ctrl+O'))
self.FileSaveItem.setText(translate(u'MainWindow', u'&Save')) self.FileSaveItem.setText(translate('MainWindow', '&Save'))
self.FileSaveItem.setToolTip(translate(u'MainWindow', u'Save Service')) self.FileSaveItem.setToolTip(translate('MainWindow', 'Save Service'))
self.FileSaveItem.setStatusTip( self.FileSaveItem.setStatusTip(
translate(u'MainWindow', u'Save the current service to disk')) translate('MainWindow', 'Save the current service to disk'))
self.FileSaveItem.setShortcut(translate(u'MainWindow', u'Ctrl+S')) self.FileSaveItem.setShortcut(translate('MainWindow', 'Ctrl+S'))
self.FileSaveAsItem.setText(translate(u'MainWindow', u'Save &As...')) self.FileSaveAsItem.setText(translate('MainWindow', 'Save &As...'))
self.FileSaveAsItem.setToolTip( self.FileSaveAsItem.setToolTip(
translate(u'MainWindow', u'Save Service As')) translate('MainWindow', 'Save Service As'))
self.FileSaveAsItem.setStatusTip(translate(u'MainWindow', self.FileSaveAsItem.setStatusTip(translate('MainWindow',
u'Save the current service under a new name')) 'Save the current service under a new name'))
self.FileSaveAsItem.setShortcut(translate(u'MainWindow', u'F12')) self.FileSaveAsItem.setShortcut(translate('MainWindow', 'F12'))
self.FileExitItem.setText(translate(u'MainWindow', u'E&xit')) self.FileExitItem.setText(translate('MainWindow', 'E&xit'))
self.FileExitItem.setStatusTip(translate(u'MainWindow', u'Quit OpenLP')) self.FileExitItem.setStatusTip(translate('MainWindow', 'Quit OpenLP'))
self.FileExitItem.setShortcut(translate(u'MainWindow', u'Alt+F4')) self.FileExitItem.setShortcut(translate('MainWindow', 'Alt+F4'))
self.ImportThemeItem.setText(translate(u'MainWindow', u'&Theme')) self.ImportThemeItem.setText(translate('MainWindow', '&Theme'))
self.ImportLanguageItem.setText(translate(u'MainWindow', u'&Language')) self.ImportLanguageItem.setText(translate('MainWindow', '&Language'))
self.ExportThemeItem.setText(translate(u'MainWindow', u'&Theme')) self.ExportThemeItem.setText(translate('MainWindow', '&Theme'))
self.ExportLanguageItem.setText(translate(u'MainWindow', u'&Language')) self.ExportLanguageItem.setText(translate('MainWindow', '&Language'))
self.actionLook_Feel.setText(translate(u'MainWindow', u'Look && &Feel')) self.actionLook_Feel.setText(translate('MainWindow', 'Look && &Feel'))
self.OptionsSettingsItem.setText(translate(u'MainWindow', u'&Settings')) self.OptionsSettingsItem.setText(translate('MainWindow', '&Settings'))
self.ViewMediaManagerItem.setText( self.ViewMediaManagerItem.setText(
translate(u'MainWindow', u'&Media Manager')) translate('MainWindow', '&Media Manager'))
self.ViewMediaManagerItem.setToolTip( self.ViewMediaManagerItem.setToolTip(
translate(u'MainWindow', u'Toggle Media Manager')) translate('MainWindow', 'Toggle Media Manager'))
self.ViewMediaManagerItem.setStatusTip(translate(u'MainWindow', self.ViewMediaManagerItem.setStatusTip(translate('MainWindow',
u'Toggle the visibility of the Media Manager')) 'Toggle the visibility of the Media Manager'))
self.ViewMediaManagerItem.setShortcut(translate(u'MainWindow', u'F8')) self.ViewMediaManagerItem.setShortcut(translate('MainWindow', 'F8'))
self.ViewThemeManagerItem.setText( self.ViewThemeManagerItem.setText(
translate(u'MainWindow', u'&Theme Manager')) translate('MainWindow', '&Theme Manager'))
self.ViewThemeManagerItem.setToolTip( self.ViewThemeManagerItem.setToolTip(
translate(u'MainWindow', u'Toggle Theme Manager')) translate('MainWindow', 'Toggle Theme Manager'))
self.ViewThemeManagerItem.setStatusTip(translate(u'MainWindow', self.ViewThemeManagerItem.setStatusTip(translate('MainWindow',
u'Toggle the visibility of the Theme Manager')) 'Toggle the visibility of the Theme Manager'))
self.ViewThemeManagerItem.setShortcut(translate(u'MainWindow', u'F10')) self.ViewThemeManagerItem.setShortcut(translate('MainWindow', 'F10'))
self.ViewServiceManagerItem.setText( self.ViewServiceManagerItem.setText(
translate(u'MainWindow', u'&Service Manager')) translate('MainWindow', '&Service Manager'))
self.ViewServiceManagerItem.setToolTip( self.ViewServiceManagerItem.setToolTip(
translate(u'MainWindow', u'Toggle Service Manager')) translate('MainWindow', 'Toggle Service Manager'))
self.ViewServiceManagerItem.setStatusTip(translate(u'MainWindow', self.ViewServiceManagerItem.setStatusTip(translate('MainWindow',
u'Toggle the visibility of the Service Manager')) 'Toggle the visibility of the Service Manager'))
self.ViewServiceManagerItem.setShortcut(translate(u'MainWindow', u'F9')) self.ViewServiceManagerItem.setShortcut(translate('MainWindow', 'F9'))
self.action_Preview_Panel.setText( self.action_Preview_Panel.setText(
translate(u'MainWindow', u'&Preview Panel')) translate('MainWindow', '&Preview Panel'))
self.action_Preview_Panel.setToolTip( self.action_Preview_Panel.setToolTip(
translate(u'MainWindow', u'Toggle Preview Panel')) translate('MainWindow', 'Toggle Preview Panel'))
self.action_Preview_Panel.setStatusTip(translate(u'MainWindow', self.action_Preview_Panel.setStatusTip(translate('MainWindow',
u'Toggle the visibility of the Preview Panel')) 'Toggle the visibility of the Preview Panel'))
self.action_Preview_Panel.setShortcut(translate(u'MainWindow', u'F11')) self.action_Preview_Panel.setShortcut(translate('MainWindow', 'F11'))
self.PluginItem.setText(translate(u'MainWindow', u'&Plugin List')) self.PluginItem.setText(translate('MainWindow', '&Plugin List'))
self.PluginItem.setStatusTip( self.PluginItem.setStatusTip(
translate(u'MainWindow', u'List the Plugins')) translate('MainWindow', 'List the Plugins'))
self.PluginItem.setShortcut(translate(u'MainWindow', u'Alt+F7')) self.PluginItem.setShortcut(translate('MainWindow', 'Alt+F7'))
self.HelpDocumentationItem.setText( self.HelpDocumentationItem.setText(
translate(u'MainWindow', u'&User Guide')) translate('MainWindow', '&User Guide'))
self.HelpAboutItem.setText(translate(u'MainWindow', u'&About')) self.HelpAboutItem.setText(translate('MainWindow', '&About'))
self.HelpAboutItem.setStatusTip( self.HelpAboutItem.setStatusTip(
translate(u'MainWindow', u'More information about OpenLP')) translate('MainWindow', 'More information about OpenLP'))
self.HelpAboutItem.setShortcut(translate(u'MainWindow', u'Ctrl+F1')) self.HelpAboutItem.setShortcut(translate('MainWindow', 'Ctrl+F1'))
self.HelpOnlineHelpItem.setText( self.HelpOnlineHelpItem.setText(
translate(u'MainWindow', u'&Online Help')) translate('MainWindow', '&Online Help'))
self.HelpWebSiteItem.setText(translate(u'MainWindow', u'&Web Site')) self.HelpWebSiteItem.setText(translate('MainWindow', '&Web Site'))
#i18n #i18n
self.AutoLanguageItem.setText(translate(u'MainWindow', u'&Auto Detect')) self.AutoLanguageItem.setText(translate('MainWindow', '&Auto Detect'))
self.AutoLanguageItem.setStatusTip( self.AutoLanguageItem.setStatusTip(
translate(u'MainWindow', u'Choose System language, if available')) translate('MainWindow', 'Choose System language, if available'))
for item in self.LanguageGroup.actions(): for item in self.LanguageGroup.actions():
item.setText(item.objectName()) item.setText(item.objectName())
item.setStatusTip(unicode(translate(u'MainWindow', item.setStatusTip(unicode(translate('MainWindow',
u'Set the interface language to %s')) % item.objectName()) 'Set the interface language to %s')) % item.objectName())
self.ToolsAddToolItem.setText(translate(u'MainWindow', u'Add &Tool...')) self.ToolsAddToolItem.setText(translate('MainWindow', 'Add &Tool...'))
self.ToolsAddToolItem.setStatusTip( self.ToolsAddToolItem.setStatusTip(
translate(u'MainWindow', translate('MainWindow',
u'Add an application to the list of tools')) 'Add an application to the list of tools'))
self.action_Preview_Panel.setText( self.action_Preview_Panel.setText(
translate(u'MainWindow', u'&Preview Pane')) translate('MainWindow', '&Preview Pane'))
self.ModeLiveItem.setText(translate(u'MainWindow', u'&Live')) self.ModeLiveItem.setText(translate('MainWindow', '&Live'))
class MainWindow(QtGui.QMainWindow, Ui_MainWindow): class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
@ -620,12 +620,12 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
Triggered by delay thread. Triggered by delay thread.
""" """
app_version = self.applicationVersion[u'full'] app_version = self.applicationVersion[u'full']
version_text = unicode(translate(u'MainWindow', u'Version %s of OpenLP ' version_text = unicode(translate('MainWindow', 'Version %s of OpenLP '
u'is now available for download (you are currently running version ' 'is now available for download (you are currently running version '
u' %s). \n\nYou can download the latest version from ' ' %s). \n\nYou can download the latest version from '
u'http://openlp.org')) 'http://openlp.org'))
QtGui.QMessageBox.question(self, QtGui.QMessageBox.question(self,
translate(u'MainWindow', u'OpenLP Version Updated'), translate('MainWindow', 'OpenLP Version Updated'),
version_text % (version, app_version), version_text % (version, app_version),
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok), QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok),
QtGui.QMessageBox.Ok) QtGui.QMessageBox.Ok)
@ -657,9 +657,9 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
if settings.value(u'blank warning', if settings.value(u'blank warning',
QtCore.QVariant(False)).toBool(): QtCore.QVariant(False)).toBool():
QtGui.QMessageBox.question(self, QtGui.QMessageBox.question(self,
translate(u'MainWindow', u'OpenLP Main Display Blanked'), translate('MainWindow', 'OpenLP Main Display Blanked'),
translate(u'MainWindow', translate('MainWindow',
u'The Main Display has been blanked out')) 'The Main Display has been blanked out'))
settings.endGroup() settings.endGroup()
def versionThread(self): def versionThread(self):
@ -712,9 +712,9 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
""" """
if self.serviceNotSaved: if self.serviceNotSaved:
ret = QtGui.QMessageBox.question(self, ret = QtGui.QMessageBox.question(self,
translate(u'MainWindow', u'Save Changes to Service?'), translate('MainWindow', 'Save Changes to Service?'),
translate(u'MainWindow', u'Your service has changed. ' translate('MainWindow', 'Your service has changed. '
u'Do you want to save those changes?'), 'Do you want to save those changes?'),
QtGui.QMessageBox.StandardButtons( QtGui.QMessageBox.StandardButtons(
QtGui.QMessageBox.Cancel | QtGui.QMessageBox.Cancel |
QtGui.QMessageBox.Discard | QtGui.QMessageBox.Discard |

View File

@ -60,4 +60,4 @@ class Ui_SettingsDialog(object):
QtCore.QMetaObject.connectSlotsByName(SettingsDialog) QtCore.QMetaObject.connectSlotsByName(SettingsDialog)
def retranslateUi(self, SettingsDialog): def retranslateUi(self, SettingsDialog):
SettingsDialog.setWindowTitle(translate(u'SettingsForm', u'Settings')) SettingsDialog.setWindowTitle(translate('SettingsForm', 'Settings'))

View File

@ -32,7 +32,7 @@ class SplashScreen(object):
self.splash_screen = QtGui.QSplashScreen() self.splash_screen = QtGui.QSplashScreen()
self.setupUi() self.setupUi()
self.message = translate( self.message = translate(
u'Splashscreen', u'Starting')\ 'Splashscreen', 'Starting')\
+ '..... ' + version + '..... ' + version
def setupUi(self): def setupUi(self):
@ -60,7 +60,7 @@ class SplashScreen(object):
def retranslateUi(self): def retranslateUi(self):
self.splash_screen.setWindowTitle( self.splash_screen.setWindowTitle(
translate(u'Splashscreen', u'Splash Screen')) translate('Splashscreen', 'Splash Screen'))
def show(self): def show(self):
self.splash_screen.show() self.splash_screen.show()