├── .github └── FUNDING.yml ├── .tx └── config ├── LICENSE ├── README.md ├── build-aux └── meson │ └── postinstall.py ├── data ├── com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in ├── com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml ├── com.github.danielpinto8zz6.budgie-calendar-applet.plugin.in └── meson.build ├── meson.build ├── po ├── LINGUAS ├── POTFILES.in ├── ca.po ├── com.github.danielpinto8zz6.budgie-calendar-applet.pot ├── de.po ├── el_GR.po ├── es.po ├── fr.po ├── ga.po ├── it.po ├── lt.po ├── meson.build ├── nl_NL.po ├── pt_PT.po ├── ru.po ├── sq.po ├── tr.po ├── uk.po └── update_linguas.sh ├── screenshot.jpg ├── src ├── Applet.vala ├── AppletSettings.vala ├── config.vala.in └── meson.build └── uncrustify.cfg /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | custom: ['paypal.me/danielpinto8zz6'] 4 | -------------------------------------------------------------------------------- /.tx/config: -------------------------------------------------------------------------------- 1 | [main] 2 | host = https://www.transifex.com 3 | 4 | [budgie-calendar-applet.budgie-calendar-applet] 5 | file_filter = po/.po 6 | source_lang = en 7 | type = PO 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | {description} 294 | Copyright (C) {year} {fullname} 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | {signature of Ty Coon}, 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # calendar-applet 2 | A budgie-desktop applet to show hours with custom formats and a calendar in a popover 3 | 4 | ## Dependencies 5 | ``` 6 | vala 7 | gtk+-3.0 8 | budgie-1.0 9 | ``` 10 | 11 | SOLUS 12 | ``` 13 | sudo eopkg it budgie-desktop-devel libgnome-desktop-devel vala 14 | ``` 15 | 16 | ### Installing from source 17 | ``` 18 | meson build --prefix /usr --buildtype=plain 19 | ninja -C build 20 | sudo ninja -C build install 21 | ``` 22 | 23 | ### Arch 24 | you can install that applet on archlinux with aur : [budgie-calendar-applet](https://aur.archlinux.org/packages/budgie-calendar-applet) 25 | 26 | ### Translate 27 | You can help translating this applet on: [Transifex](https://www.transifex.com/danielpinto8zz6/budgie-calendar-applet) 28 | 29 | ### Screenshot 30 | ![Screenshot](screenshot.jpg) 31 | -------------------------------------------------------------------------------- /build-aux/meson/postinstall.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | from os import environ, path 4 | from subprocess import call 5 | 6 | prefix = environ.get('MESON_INSTALL_PREFIX', '/usr/local') 7 | datadir = path.join(prefix, 'share') 8 | destdir = environ.get('DESTDIR', '') 9 | 10 | if not destdir: 11 | print('Compiling GSettings schemas...') 12 | call(['glib-compile-schemas', path.join(datadir, 'glib-2.0', 'schemas')]) 13 | 14 | 15 | -------------------------------------------------------------------------------- /data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml 4 | budgie-calendar-applet 5 | budgie-calendar-applet 6 | CC0-1.0 7 | GPL-2.0+ 8 | Budgie Calendar Applet 9 | Calendar applet for Budgie Desktop 10 | 11 |

12 | A budgie-desktop applet to show hours with custom formats and a calendar in a popover 13 |

14 |
15 | 16 | 17 | https://raw.githubusercontent.com/danielpinto8zz6/budgie-calendar-applet/master/screenshot.jpg 18 | 19 | 20 | https://github.com/danielpinto8zz6/budgie-calendar-applet 21 | https://github.com/danielpinto8zz6/budgie-calendar-applet/issues 22 | https://www.transifex.com/danielpinto8zz6/budgie-calendar-applet 23 | https://paypal.me/danielpinto8zz6 24 | Daniel Pinto 25 | danielpinto8zz6_AT_gmail.com 26 |
27 | -------------------------------------------------------------------------------- /data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | false 5 | Clock Format 6 | 7 | Enable or disable custom clock format 8 | 9 | 10 | 11 | "%e %b %Y - %H:%M" 12 | Clock Format 13 | 14 | Show the clock at the format you want 15 | 16 | 17 | 18 | false 19 | Show week numbers in calendar 20 | 21 | Enable or disable week numbers 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /data/com.github.danielpinto8zz6.budgie-calendar-applet.plugin.in: -------------------------------------------------------------------------------- 1 | [Plugin] 2 | Module=calendarapplet.so 3 | Name=Calendar 4 | Description=Calendar Applet 5 | Authors=Daniel Pinto 6 | Copyright=Copyright © 2017-2018 Daniel Pinto 7 | Website=https://github.com/danielpinto8zz6/budgie-calendar-applet 8 | Icon=x-office-calendar-symbolic 9 | -------------------------------------------------------------------------------- /data/meson.build: -------------------------------------------------------------------------------- 1 | plugin_file = i18n.merge_file( 2 | input: 'com.github.danielpinto8zz6.budgie-calendar-applet.plugin.in', 3 | output: 'com.github.danielpinto8zz6.budgie-calendar-applet.plugin', 4 | type: 'desktop', 5 | po_dir: '../po', 6 | install: true, 7 | install_dir: lib_install_dir 8 | ) 9 | 10 | plugin_utils = find_program('desktop-file-validate', required: false) 11 | if plugin_utils.found() 12 | test('Validate plugin file', plugin_utils, 13 | args: [plugin_file] 14 | ) 15 | endif 16 | 17 | appstream_file = i18n.merge_file( 18 | input: 'com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in', 19 | output: 'com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml', 20 | po_dir: '../po', 21 | install: true, 22 | install_dir: join_paths(get_option('datadir'), 'metainfo') 23 | ) 24 | 25 | appstream_util = find_program('appstream-util', required: false) 26 | if appstream_util.found() 27 | test('Validate appstream file', appstream_util, 28 | args: ['validate', appstream_file] 29 | ) 30 | endif 31 | 32 | install_data('com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml', 33 | install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas') 34 | ) 35 | 36 | compile_schemas = find_program('glib-compile-schemas', required: false) 37 | if compile_schemas.found() 38 | test('Validate schema file', compile_schemas, 39 | args: ['--strict', '--dry-run', meson.current_source_dir()] 40 | ) 41 | endif 42 | -------------------------------------------------------------------------------- /meson.build: -------------------------------------------------------------------------------- 1 | project('com.github.danielpinto8zz6.budgie-calendar-applet', 2 | ['vala', 'c'], 3 | version: '5.3', 4 | meson_version: '>=0.40.0', 5 | license: 'GPL2') 6 | 7 | add_project_arguments([ 8 | '-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()) 9 | ], 10 | language: 'c', 11 | ) 12 | 13 | i18n = import('i18n') 14 | 15 | lib_install_dir = join_paths(get_option('prefix'), get_option( 16 | 'libdir'), 'budgie-desktop', 'plugins', meson.project_name()) 17 | 18 | subdir('src') 19 | subdir('data') 20 | subdir('po') 21 | 22 | meson.add_install_script('build-aux/meson/postinstall.py') 23 | -------------------------------------------------------------------------------- /po/LINGUAS: -------------------------------------------------------------------------------- 1 | ca 2 | de 3 | el_GR 4 | es 5 | fr 6 | ga 7 | lt 8 | pt_PT 9 | sq 10 | tr 11 | uk 12 | -------------------------------------------------------------------------------- /po/POTFILES.in: -------------------------------------------------------------------------------- 1 | data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in 2 | data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml 3 | data/com.github.danielpinto8zz6.budgie-calendar-applet.plugin.in 4 | src/Applet.vala 5 | src/AppletSettings.vala -------------------------------------------------------------------------------- /po/ca.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.danielpinto8zz6.budgie-calendar-applet package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # daniel pinto , 2021 8 | # Davidmp , 2021 9 | # 10 | #, fuzzy 11 | msgid "" 12 | msgstr "" 13 | "Project-Id-Version: com.github.danielpinto8zz6.budgie-calendar-applet\n" 14 | "Report-Msgid-Bugs-To: \n" 15 | "POT-Creation-Date: 2018-10-27 08:18+0100\n" 16 | "PO-Revision-Date: 2021-04-14 17:54+0000\n" 17 | "Last-Translator: Davidmp , 2021\n" 18 | "Language-Team: Catalan (https://www.transifex.com/danielpinto8zz6/teams/75894/ca/)\n" 19 | "MIME-Version: 1.0\n" 20 | "Content-Type: text/plain; charset=UTF-8\n" 21 | "Content-Transfer-Encoding: 8bit\n" 22 | "Language: ca\n" 23 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 24 | 25 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:8 26 | msgid "Budgie Calendar Applet" 27 | msgstr "Miniaplicació de calendari del Budgie" 28 | 29 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:9 30 | msgid "Calendar applet for Budgie Desktop" 31 | msgstr "Miniaplicació de calendari per a l'escriptori Budgie" 32 | 33 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:11 34 | msgid "" 35 | "A budgie-desktop applet to show hours with custom formats and a calendar in " 36 | "a popover" 37 | msgstr "" 38 | "Una miniaplicació per a l'escriptori Budgie per mostrar hores amb formats " 39 | "personalitzats i un calendari emergent" 40 | 41 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:24 42 | msgid "Daniel Pinto" 43 | msgstr "Daniel Pinto" 44 | 45 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:5 46 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:12 47 | msgid "Clock Format" 48 | msgstr "Format del rellotge" 49 | 50 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:6 51 | msgid "Enable or disable custom clock format" 52 | msgstr "Habiliteu o inhabiliteu el format de rellotge personalitzat." 53 | 54 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:11 55 | msgid "\"%e %b %Y - %H:%M\"" 56 | msgstr "\"%e %b %Y - %H.%M\"" 57 | 58 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:13 59 | msgid "Show the clock at the format you want" 60 | msgstr "Es mostra el rellotge amb el format que vulgueu." 61 | 62 | #: src/AppletSettings.vala:31 63 | msgid "Show date" 64 | msgstr "Mostra la data." 65 | 66 | #: src/AppletSettings.vala:38 67 | msgid "Show seconds" 68 | msgstr "Mostra els segons." 69 | 70 | #: src/AppletSettings.vala:45 71 | msgid "Use 24h time" 72 | msgstr "Usa 24 h." 73 | 74 | #: src/AppletSettings.vala:52 75 | msgid "Custom date" 76 | msgstr "Data personalitzada" 77 | 78 | #: src/AppletSettings.vala:58 79 | msgid "Date format syntax" 80 | msgstr "Sintaxi del format de la data" 81 | 82 | #: src/AppletSettings.vala:69 83 | msgid "Time and date settings" 84 | msgstr "Configuració de l'hora i la data" 85 | -------------------------------------------------------------------------------- /po/com.github.danielpinto8zz6.budgie-calendar-applet.pot: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.danielpinto8zz6.budgie-calendar-applet package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | #, fuzzy 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: com.github.danielpinto8zz6.budgie-calendar-applet\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2018-10-27 08:18+0100\n" 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 | "Last-Translator: FULL NAME \n" 14 | "Language-Team: LANGUAGE \n" 15 | "Language: \n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | 20 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:8 21 | msgid "Budgie Calendar Applet" 22 | msgstr "" 23 | 24 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:9 25 | msgid "Calendar applet for Budgie Desktop" 26 | msgstr "" 27 | 28 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:11 29 | msgid "" 30 | "A budgie-desktop applet to show hours with custom formats and a calendar in " 31 | "a popover" 32 | msgstr "" 33 | 34 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:24 35 | msgid "Daniel Pinto" 36 | msgstr "" 37 | 38 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:5 39 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:12 40 | msgid "Clock Format" 41 | msgstr "" 42 | 43 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:6 44 | msgid "Enable or disable custom clock format" 45 | msgstr "" 46 | 47 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:11 48 | msgid "\"%e %b %Y - %H:%M\"" 49 | msgstr "" 50 | 51 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:13 52 | msgid "Show the clock at the format you want" 53 | msgstr "" 54 | 55 | #: src/AppletSettings.vala:31 56 | msgid "Show date" 57 | msgstr "" 58 | 59 | #: src/AppletSettings.vala:38 60 | msgid "Show seconds" 61 | msgstr "" 62 | 63 | #: src/AppletSettings.vala:45 64 | msgid "Use 24h time" 65 | msgstr "" 66 | 67 | #: src/AppletSettings.vala:52 68 | msgid "Custom date" 69 | msgstr "" 70 | 71 | #: src/AppletSettings.vala:58 72 | msgid "Date format syntax" 73 | msgstr "" 74 | 75 | #: src/AppletSettings.vala:69 76 | msgid "Time and date settings" 77 | msgstr "" 78 | -------------------------------------------------------------------------------- /po/de.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.danielpinto8zz6.budgie-calendar-applet package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | #, fuzzy 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: com.github.danielpinto8zz6.budgie-calendar-applet\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2018-10-27 08:18+0100\n" 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 | "Last-Translator: Mailaender , 2017\n" 14 | "Language-Team: German (https://www.transifex.com/danielpinto8zz6/teams/75894/de/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: de\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:8 22 | msgid "Budgie Calendar Applet" 23 | msgstr "" 24 | 25 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:9 26 | msgid "Calendar applet for Budgie Desktop" 27 | msgstr "" 28 | 29 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:11 30 | msgid "" 31 | "A budgie-desktop applet to show hours with custom formats and a calendar in " 32 | "a popover" 33 | msgstr "" 34 | 35 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:24 36 | msgid "Daniel Pinto" 37 | msgstr "" 38 | 39 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:5 40 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:12 41 | msgid "Clock Format" 42 | msgstr "" 43 | 44 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:6 45 | msgid "Enable or disable custom clock format" 46 | msgstr "" 47 | 48 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:11 49 | msgid "\"%e %b %Y - %H:%M\"" 50 | msgstr "" 51 | 52 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:13 53 | msgid "Show the clock at the format you want" 54 | msgstr "" 55 | 56 | #: src/AppletSettings.vala:31 57 | msgid "Show date" 58 | msgstr "Zeige Datum" 59 | 60 | #: src/AppletSettings.vala:38 61 | msgid "Show seconds" 62 | msgstr "Zeige Sekunden" 63 | 64 | #: src/AppletSettings.vala:45 65 | msgid "Use 24h time" 66 | msgstr "24-Stunden-Zählung" 67 | 68 | #: src/AppletSettings.vala:52 69 | msgid "Custom date" 70 | msgstr "Benutzerdefiniertes Datum" 71 | 72 | #: src/AppletSettings.vala:58 73 | msgid "Date format syntax" 74 | msgstr "Datumsformatierung" 75 | 76 | #: src/AppletSettings.vala:69 77 | msgid "Time and date settings" 78 | msgstr "Zeit- und Datumseinstellungen" 79 | -------------------------------------------------------------------------------- /po/el_GR.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.danielpinto8zz6.budgie-calendar-applet package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | #, fuzzy 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: com.github.danielpinto8zz6.budgie-calendar-applet\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2018-10-27 08:18+0100\n" 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 | "Last-Translator: daniel pinto , 2018\n" 14 | "Language-Team: Greek (Greece) (https://www.transifex.com/danielpinto8zz6/teams/75894/el_GR/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: el_GR\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:8 22 | msgid "Budgie Calendar Applet" 23 | msgstr "" 24 | 25 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:9 26 | msgid "Calendar applet for Budgie Desktop" 27 | msgstr "" 28 | 29 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:11 30 | msgid "" 31 | "A budgie-desktop applet to show hours with custom formats and a calendar in " 32 | "a popover" 33 | msgstr "" 34 | 35 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:24 36 | msgid "Daniel Pinto" 37 | msgstr "" 38 | 39 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:5 40 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:12 41 | msgid "Clock Format" 42 | msgstr "" 43 | 44 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:6 45 | msgid "Enable or disable custom clock format" 46 | msgstr "" 47 | 48 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:11 49 | msgid "\"%e %b %Y - %H:%M\"" 50 | msgstr "" 51 | 52 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:13 53 | msgid "Show the clock at the format you want" 54 | msgstr "" 55 | 56 | #: src/AppletSettings.vala:31 57 | msgid "Show date" 58 | msgstr "Προβολή ημερομηνίας" 59 | 60 | #: src/AppletSettings.vala:38 61 | msgid "Show seconds" 62 | msgstr "Προβολή δευτερολέπτων" 63 | 64 | #: src/AppletSettings.vala:45 65 | msgid "Use 24h time" 66 | msgstr " 24 " 67 | 68 | #: src/AppletSettings.vala:52 69 | msgid "Custom date" 70 | msgstr "Προσαρμοσμένη ημερομηνία" 71 | 72 | #: src/AppletSettings.vala:58 73 | msgid "Date format syntax" 74 | msgstr "Μορφή ημερομηνίας" 75 | 76 | #: src/AppletSettings.vala:69 77 | msgid "Time and date settings" 78 | msgstr "Ρυθμίσεις ώρας και ημερομηνίας" 79 | -------------------------------------------------------------------------------- /po/es.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.danielpinto8zz6.budgie-calendar-applet package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | #, fuzzy 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: com.github.danielpinto8zz6.budgie-calendar-applet\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2018-10-27 08:18+0100\n" 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 | "Last-Translator: Juan Carlos , 2017\n" 14 | "Language-Team: Spanish (https://www.transifex.com/danielpinto8zz6/teams/75894/es/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: es\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:8 22 | msgid "Budgie Calendar Applet" 23 | msgstr "" 24 | 25 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:9 26 | msgid "Calendar applet for Budgie Desktop" 27 | msgstr "" 28 | 29 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:11 30 | msgid "" 31 | "A budgie-desktop applet to show hours with custom formats and a calendar in " 32 | "a popover" 33 | msgstr "" 34 | 35 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:24 36 | msgid "Daniel Pinto" 37 | msgstr "" 38 | 39 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:5 40 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:12 41 | msgid "Clock Format" 42 | msgstr "" 43 | 44 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:6 45 | msgid "Enable or disable custom clock format" 46 | msgstr "" 47 | 48 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:11 49 | msgid "\"%e %b %Y - %H:%M\"" 50 | msgstr "" 51 | 52 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:13 53 | msgid "Show the clock at the format you want" 54 | msgstr "" 55 | 56 | #: src/AppletSettings.vala:31 57 | msgid "Show date" 58 | msgstr "Mostrar fecha" 59 | 60 | #: src/AppletSettings.vala:38 61 | msgid "Show seconds" 62 | msgstr "Mostrar segundos" 63 | 64 | #: src/AppletSettings.vala:45 65 | msgid "Use 24h time" 66 | msgstr "Formato 24h" 67 | 68 | #: src/AppletSettings.vala:52 69 | msgid "Custom date" 70 | msgstr "Fecha personalizada" 71 | 72 | #: src/AppletSettings.vala:58 73 | msgid "Date format syntax" 74 | msgstr "Sintaxis del formato de fecha" 75 | 76 | #: src/AppletSettings.vala:69 77 | msgid "Time and date settings" 78 | msgstr "Ajustes de hora y fecha" 79 | -------------------------------------------------------------------------------- /po/fr.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.danielpinto8zz6.budgie-calendar-applet package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # daniel pinto , 2021 8 | # roxfr , 2022 9 | # 10 | #, fuzzy 11 | msgid "" 12 | msgstr "" 13 | "Project-Id-Version: com.github.danielpinto8zz6.budgie-calendar-applet\n" 14 | "Report-Msgid-Bugs-To: \n" 15 | "POT-Creation-Date: 2018-10-27 08:18+0100\n" 16 | "PO-Revision-Date: 2021-04-14 17:54+0000\n" 17 | "Last-Translator: roxfr , 2022\n" 18 | "Language-Team: French (https://www.transifex.com/danielpinto8zz6/teams/75894/fr/)\n" 19 | "MIME-Version: 1.0\n" 20 | "Content-Type: text/plain; charset=UTF-8\n" 21 | "Content-Transfer-Encoding: 8bit\n" 22 | "Language: fr\n" 23 | "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" 24 | 25 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:8 26 | msgid "Budgie Calendar Applet" 27 | msgstr "Budgie Calendar Applet" 28 | 29 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:9 30 | msgid "Calendar applet for Budgie Desktop" 31 | msgstr "Applet de calendrier pour Budgie Desktop" 32 | 33 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:11 34 | msgid "" 35 | "A budgie-desktop applet to show hours with custom formats and a calendar in " 36 | "a popover" 37 | msgstr "" 38 | "Une applet budgie-desktop pour afficher les heures avec des formats " 39 | "personnalisés et un calendrier dans popover" 40 | 41 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:24 42 | msgid "Daniel Pinto" 43 | msgstr "Daniel Pinto" 44 | 45 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:5 46 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:12 47 | msgid "Clock Format" 48 | msgstr "Format d'horloge" 49 | 50 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:6 51 | msgid "Enable or disable custom clock format" 52 | msgstr "Activer ou désactiver le format d'horloge personnalisé" 53 | 54 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:11 55 | msgid "\"%e %b %Y - %H:%M\"" 56 | msgstr "\"%e %b %Y - %H:%M\"" 57 | 58 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:13 59 | msgid "Show the clock at the format you want" 60 | msgstr "Afficher l'horloge au format que vous voulez" 61 | 62 | #: src/AppletSettings.vala:31 63 | msgid "Show date" 64 | msgstr "Afficher la date" 65 | 66 | #: src/AppletSettings.vala:38 67 | msgid "Show seconds" 68 | msgstr "Afficher les secondes" 69 | 70 | #: src/AppletSettings.vala:45 71 | msgid "Use 24h time" 72 | msgstr "Utiliser le système horaire sur 24 heures" 73 | 74 | #: src/AppletSettings.vala:52 75 | msgid "Custom date" 76 | msgstr "Date personnalisée" 77 | 78 | #: src/AppletSettings.vala:58 79 | msgid "Date format syntax" 80 | msgstr "Syntaxe pour le formatage de la date" 81 | 82 | #: src/AppletSettings.vala:69 83 | msgid "Time and date settings" 84 | msgstr "Paramètres de l'heure et de la date" 85 | -------------------------------------------------------------------------------- /po/ga.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.danielpinto8zz6.budgie-calendar-applet package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Seán Ó Séaghdha , 2019 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: com.github.danielpinto8zz6.budgie-calendar-applet\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2018-10-27 08:18+0100\n" 15 | "PO-Revision-Date: 2017-06-18 04:23+0000\n" 16 | "Last-Translator: Seán Ó Séaghdha , 2019\n" 17 | "Language-Team: Irish (https://www.transifex.com/danielpinto8zz6/teams/75894/ga/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: ga\n" 22 | "Plural-Forms: nplurals=5; plural=(n==1 ? 0 : n==2 ? 1 : n<7 ? 2 : n<11 ? 3 : 4);\n" 23 | 24 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:8 25 | msgid "Budgie Calendar Applet" 26 | msgstr "Feidhmchláirín Féilire Budgie" 27 | 28 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:9 29 | msgid "Calendar applet for Budgie Desktop" 30 | msgstr "Feidhmchláirín féilire don Deasc Budgie" 31 | 32 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:11 33 | msgid "" 34 | "A budgie-desktop applet to show hours with custom formats and a calendar in " 35 | "a popover" 36 | msgstr "" 37 | "Feidhmchláirín Deasc Budgie chun dáta/am a thaispeáint agus féilire i " 38 | "bpreab-bhosca" 39 | 40 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:24 41 | msgid "Daniel Pinto" 42 | msgstr "Daniel Pinto" 43 | 44 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:5 45 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:12 46 | msgid "Clock Format" 47 | msgstr "Formáid Chloig" 48 | 49 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:6 50 | msgid "Enable or disable custom clock format" 51 | msgstr "Cumasaigh nó díchumasaigh an fhormáid chloig shaincheaptha" 52 | 53 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:11 54 | msgid "\"%e %b %Y - %H:%M\"" 55 | msgstr "\"%e %b %Y - %H:%M\"" 56 | 57 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:13 58 | msgid "Show the clock at the format you want" 59 | msgstr "Taispeáin an clog san fhormáid is fearr leat" 60 | 61 | #: src/AppletSettings.vala:31 62 | msgid "Show date" 63 | msgstr "Taispeáin dáta" 64 | 65 | #: src/AppletSettings.vala:38 66 | msgid "Show seconds" 67 | msgstr "Taispeáin soicindí" 68 | 69 | #: src/AppletSettings.vala:45 70 | msgid "Use 24h time" 71 | msgstr "Úsáid am 24 uair" 72 | 73 | #: src/AppletSettings.vala:52 74 | msgid "Custom date" 75 | msgstr "Dáta saincheaptha" 76 | 77 | #: src/AppletSettings.vala:58 78 | msgid "Date format syntax" 79 | msgstr "Comhréir fhormáid dáta" 80 | 81 | #: src/AppletSettings.vala:69 82 | msgid "Time and date settings" 83 | msgstr "Socruithe am agus dáta" 84 | -------------------------------------------------------------------------------- /po/it.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.danielpinto8zz6.budgie-calendar-applet package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Marco Colnaghi, 2021 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: com.github.danielpinto8zz6.budgie-calendar-applet\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2018-10-27 08:18+0100\n" 15 | "PO-Revision-Date: 2021-04-14 17:54+0000\n" 16 | "Last-Translator: Marco Colnaghi, 2021\n" 17 | "Language-Team: Italian (https://www.transifex.com/danielpinto8zz6/teams/75894/it/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: it\n" 22 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 23 | 24 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:8 25 | msgid "Budgie Calendar Applet" 26 | msgstr "Applet Calendario Budgie" 27 | 28 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:9 29 | msgid "Calendar applet for Budgie Desktop" 30 | msgstr "Applet calendario per Desktop Budgie" 31 | 32 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:11 33 | msgid "" 34 | "A budgie-desktop applet to show hours with custom formats and a calendar in " 35 | "a popover" 36 | msgstr "" 37 | "Un applet per Desktop Budgie che mostra orario e data in formato " 38 | "personalizzato e il calendario in finestra" 39 | 40 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:24 41 | msgid "Daniel Pinto" 42 | msgstr "Daniel Pinto" 43 | 44 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:5 45 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:12 46 | msgid "Clock Format" 47 | msgstr "Formato Orario" 48 | 49 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:6 50 | msgid "Enable or disable custom clock format" 51 | msgstr "Abilita e disabilita formato orario personalizzato" 52 | 53 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:11 54 | msgid "\"%e %b %Y - %H:%M\"" 55 | msgstr "\"%e %b %Y - %H:%M\"" 56 | 57 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:13 58 | msgid "Show the clock at the format you want" 59 | msgstr "Mostra l'orario nel formato desiderato" 60 | 61 | #: src/AppletSettings.vala:31 62 | msgid "Show date" 63 | msgstr "Mostra data" 64 | 65 | #: src/AppletSettings.vala:38 66 | msgid "Show seconds" 67 | msgstr "Mostra Secondi" 68 | 69 | #: src/AppletSettings.vala:45 70 | msgid "Use 24h time" 71 | msgstr "Usa orario 24h" 72 | 73 | #: src/AppletSettings.vala:52 74 | msgid "Custom date" 75 | msgstr "Data personalizzata" 76 | 77 | #: src/AppletSettings.vala:58 78 | msgid "Date format syntax" 79 | msgstr "Sintassi formato data" 80 | 81 | #: src/AppletSettings.vala:69 82 | msgid "Time and date settings" 83 | msgstr "Impostazioni data e ora" 84 | -------------------------------------------------------------------------------- /po/lt.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.danielpinto8zz6.budgie-calendar-applet package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # daniel pinto , 2021 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: com.github.danielpinto8zz6.budgie-calendar-applet\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2018-10-27 08:18+0100\n" 15 | "PO-Revision-Date: 2021-04-14 17:54+0000\n" 16 | "Last-Translator: daniel pinto , 2021\n" 17 | "Language-Team: Lithuanian (https://www.transifex.com/danielpinto8zz6/teams/75894/lt/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: lt\n" 22 | "Plural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\n" 23 | 24 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:8 25 | msgid "Budgie Calendar Applet" 26 | msgstr "Budgie kalendoriaus programėlė" 27 | 28 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:9 29 | msgid "Calendar applet for Budgie Desktop" 30 | msgstr "Kalendoriaus programėlė, skirta Budgie darbalaukiui" 31 | 32 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:11 33 | msgid "" 34 | "A budgie-desktop applet to show hours with custom formats and a calendar in " 35 | "a popover" 36 | msgstr "" 37 | "Budgie darbalaukio programėlė, skirta rodyti valandas tinkintu formatu ir " 38 | "kalendorių išskleidžiamajame lange" 39 | 40 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:24 41 | msgid "Daniel Pinto" 42 | msgstr "Daniel Pinto" 43 | 44 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:5 45 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:12 46 | msgid "Clock Format" 47 | msgstr "Laiko formatas" 48 | 49 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:6 50 | msgid "Enable or disable custom clock format" 51 | msgstr "Įjungti ar išjungti tinkintą laiko formatą" 52 | 53 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:11 54 | msgid "\"%e %b %Y - %H:%M\"" 55 | msgstr "\"%Y %b %e - %H:%M\"" 56 | 57 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:13 58 | msgid "Show the clock at the format you want" 59 | msgstr "Rodyti laiką jūsų pageidaujamu formatu" 60 | 61 | #: src/AppletSettings.vala:31 62 | msgid "Show date" 63 | msgstr "Rodyti datą" 64 | 65 | #: src/AppletSettings.vala:38 66 | msgid "Show seconds" 67 | msgstr "Rodyti sekundes" 68 | 69 | #: src/AppletSettings.vala:45 70 | msgid "Use 24h time" 71 | msgstr "Naudoti 24 valandų laiką" 72 | 73 | #: src/AppletSettings.vala:52 74 | msgid "Custom date" 75 | msgstr "Tinkinta data" 76 | 77 | #: src/AppletSettings.vala:58 78 | msgid "Date format syntax" 79 | msgstr "Datos formato sintaksė" 80 | 81 | #: src/AppletSettings.vala:69 82 | msgid "Time and date settings" 83 | msgstr "Laiko ir datos nustatymai" 84 | -------------------------------------------------------------------------------- /po/meson.build: -------------------------------------------------------------------------------- 1 | i18n.gettext(meson.project_name(), preset: 'glib') -------------------------------------------------------------------------------- /po/nl_NL.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.danielpinto8zz6.budgie-calendar-applet package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Stephan Paternotte , 2025 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: com.github.danielpinto8zz6.budgie-calendar-applet\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2018-10-27 08:18+0100\n" 15 | "PO-Revision-Date: 2021-04-14 17:54+0000\n" 16 | "Last-Translator: Stephan Paternotte , 2025\n" 17 | "Language-Team: Dutch (Netherlands) (https://app.transifex.com/danielpinto8zz6/teams/75894/nl_NL/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: nl_NL\n" 22 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 23 | 24 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:8 25 | msgid "Budgie Calendar Applet" 26 | msgstr "Budgie Kalender Applet" 27 | 28 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:9 29 | msgid "Calendar applet for Budgie Desktop" 30 | msgstr "Kalender applet voor Budgie Desktop" 31 | 32 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:11 33 | msgid "" 34 | "A budgie-desktop applet to show hours with custom formats and a calendar in " 35 | "a popover" 36 | msgstr "" 37 | "Een budgie-desktop-applet om uren weer te geven met aangepaste formaten en " 38 | "een kalender in een popover" 39 | 40 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:24 41 | msgid "Daniel Pinto" 42 | msgstr "Daniel Pinto" 43 | 44 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:5 45 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:12 46 | msgid "Clock Format" 47 | msgstr "Klokformaat" 48 | 49 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:6 50 | msgid "Enable or disable custom clock format" 51 | msgstr "Aangepast klokformaat in/uitschakelen" 52 | 53 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:11 54 | msgid "\"%e %b %Y - %H:%M\"" 55 | msgstr "\"%e %b %Y - %H:%M\"" 56 | 57 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:13 58 | msgid "Show the clock at the format you want" 59 | msgstr "Toon de klok op het gewenste formaat" 60 | 61 | #: src/AppletSettings.vala:31 62 | msgid "Show date" 63 | msgstr "Datum tonen" 64 | 65 | #: src/AppletSettings.vala:38 66 | msgid "Show seconds" 67 | msgstr "Seconden tonen" 68 | 69 | #: src/AppletSettings.vala:45 70 | msgid "Use 24h time" 71 | msgstr "24-uurs klok gebruiken" 72 | 73 | #: src/AppletSettings.vala:52 74 | msgid "Custom date" 75 | msgstr "Aangepaste datum" 76 | 77 | #: src/AppletSettings.vala:58 78 | msgid "Date format syntax" 79 | msgstr "Datumformaat-opmaak" 80 | 81 | #: src/AppletSettings.vala:69 82 | msgid "Time and date settings" 83 | msgstr "Instellingen voor Datum en tijd" 84 | -------------------------------------------------------------------------------- /po/pt_PT.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.danielpinto8zz6.budgie-calendar-applet package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # daniel pinto , 2021 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: com.github.danielpinto8zz6.budgie-calendar-applet\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2018-10-27 08:18+0100\n" 15 | "PO-Revision-Date: 2021-04-14 17:54+0000\n" 16 | "Last-Translator: daniel pinto , 2021\n" 17 | "Language-Team: Portuguese (Portugal) (https://www.transifex.com/danielpinto8zz6/teams/75894/pt_PT/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: pt_PT\n" 22 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 23 | 24 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:8 25 | msgid "Budgie Calendar Applet" 26 | msgstr "Budgie Calendar Applet" 27 | 28 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:9 29 | msgid "Calendar applet for Budgie Desktop" 30 | msgstr "Applet de calendário para budgie desktop" 31 | 32 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:11 33 | msgid "" 34 | "A budgie-desktop applet to show hours with custom formats and a calendar in " 35 | "a popover" 36 | msgstr "" 37 | "Um applet para o desktop-budgie que mostra as horas com formatos " 38 | "personalizados e um calendário em um popover" 39 | 40 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:24 41 | msgid "Daniel Pinto" 42 | msgstr "Daniel Pinto" 43 | 44 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:5 45 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:12 46 | msgid "Clock Format" 47 | msgstr "Formato do relógio" 48 | 49 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:6 50 | msgid "Enable or disable custom clock format" 51 | msgstr "Ativar ou desativar o formato de relógio personalizado" 52 | 53 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:11 54 | msgid "\"%e %b %Y - %H:%M\"" 55 | msgstr "\"\\\"%e %b %Y - %H:%M\\\"" 56 | 57 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:13 58 | msgid "Show the clock at the format you want" 59 | msgstr "Mostrar o relógio no formato desejado" 60 | 61 | #: src/AppletSettings.vala:31 62 | msgid "Show date" 63 | msgstr "Mostrar data" 64 | 65 | #: src/AppletSettings.vala:38 66 | msgid "Show seconds" 67 | msgstr "Mostrar segundos" 68 | 69 | #: src/AppletSettings.vala:45 70 | msgid "Use 24h time" 71 | msgstr "Usar formato 24h" 72 | 73 | #: src/AppletSettings.vala:52 74 | msgid "Custom date" 75 | msgstr "Data personalizada" 76 | 77 | #: src/AppletSettings.vala:58 78 | msgid "Date format syntax" 79 | msgstr "Sintaxe do formato da data" 80 | 81 | #: src/AppletSettings.vala:69 82 | msgid "Time and date settings" 83 | msgstr "Definições de data e hora" 84 | -------------------------------------------------------------------------------- /po/ru.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.danielpinto8zz6.budgie-calendar-applet package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # ndvio, 2022 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: com.github.danielpinto8zz6.budgie-calendar-applet\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2018-10-27 08:18+0100\n" 15 | "PO-Revision-Date: 2021-04-14 17:54+0000\n" 16 | "Last-Translator: ndvio, 2022\n" 17 | "Language-Team: Russian (https://www.transifex.com/danielpinto8zz6/teams/75894/ru/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: ru\n" 22 | "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" 23 | 24 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:8 25 | msgid "Budgie Calendar Applet" 26 | msgstr "Апплет Budgie Calendar" 27 | 28 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:9 29 | msgid "Calendar applet for Budgie Desktop" 30 | msgstr "Апплет календаря для Budgie Desktop" 31 | 32 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:11 33 | msgid "" 34 | "A budgie-desktop applet to show hours with custom formats and a calendar in " 35 | "a popover" 36 | msgstr "" 37 | "Апплет budgie-desktop для отображения часов с пользовательскими форматами и " 38 | "календаря во всплывающем окне" 39 | 40 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:24 41 | msgid "Daniel Pinto" 42 | msgstr "Daniel Pinto" 43 | 44 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:5 45 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:12 46 | msgid "Clock Format" 47 | msgstr "Формат часов" 48 | 49 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:6 50 | msgid "Enable or disable custom clock format" 51 | msgstr "Включение или отключение пользовательского формата часов" 52 | 53 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:11 54 | msgid "\"%e %b %Y - %H:%M\"" 55 | msgstr "\"%e %b %Y - %H:%M\"" 56 | 57 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:13 58 | msgid "Show the clock at the format you want" 59 | msgstr "Отображать часы в нужном формате" 60 | 61 | #: src/AppletSettings.vala:31 62 | msgid "Show date" 63 | msgstr "Отображать дату" 64 | 65 | #: src/AppletSettings.vala:38 66 | msgid "Show seconds" 67 | msgstr "Отображать секунды" 68 | 69 | #: src/AppletSettings.vala:45 70 | msgid "Use 24h time" 71 | msgstr "Использовать 24-часовой формат времени" 72 | 73 | #: src/AppletSettings.vala:52 74 | msgid "Custom date" 75 | msgstr "Настроить вручную" 76 | 77 | #: src/AppletSettings.vala:58 78 | msgid "Date format syntax" 79 | msgstr "Синтаксис формата даты" 80 | 81 | #: src/AppletSettings.vala:69 82 | msgid "Time and date settings" 83 | msgstr "Настроить время и дату" 84 | -------------------------------------------------------------------------------- /po/sq.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.danielpinto8zz6.budgie-calendar-applet package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Algent Albrahimi , 2021 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: com.github.danielpinto8zz6.budgie-calendar-applet\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2018-10-27 08:18+0100\n" 15 | "PO-Revision-Date: 2021-04-14 17:54+0000\n" 16 | "Last-Translator: Algent Albrahimi , 2021\n" 17 | "Language-Team: Albanian (https://www.transifex.com/danielpinto8zz6/teams/75894/sq/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: sq\n" 22 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 23 | 24 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:8 25 | msgid "Budgie Calendar Applet" 26 | msgstr "Appleti Kalendari Budgie" 27 | 28 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:9 29 | msgid "Calendar applet for Budgie Desktop" 30 | msgstr "Applet i kalendarit për Desktopin Budgie" 31 | 32 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:11 33 | msgid "" 34 | "A budgie-desktop applet to show hours with custom formats and a calendar in " 35 | "a popover" 36 | msgstr "" 37 | "Një applet budgie-desktop për të treguar orët me formate të personalizuara " 38 | "dhe një kalendar në sistemin tabaka" 39 | 40 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:24 41 | msgid "Daniel Pinto" 42 | msgstr "Daniel Pinto" 43 | 44 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:5 45 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:12 46 | msgid "Clock Format" 47 | msgstr "Formati i orës" 48 | 49 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:6 50 | msgid "Enable or disable custom clock format" 51 | msgstr "Aktivizo ose çaktivizo formatin e orës së personalizuar" 52 | 53 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:11 54 | msgid "\"%e %b %Y - %H:%M\"" 55 | msgstr "\"%e %b %V - %O:%M\"" 56 | 57 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:13 58 | msgid "Show the clock at the format you want" 59 | msgstr "Shfaq orën në formatin që dëshiron" 60 | 61 | #: src/AppletSettings.vala:31 62 | msgid "Show date" 63 | msgstr "Shfaq datën" 64 | 65 | #: src/AppletSettings.vala:38 66 | msgid "Show seconds" 67 | msgstr "Shfaq sekondat" 68 | 69 | #: src/AppletSettings.vala:45 70 | msgid "Use 24h time" 71 | msgstr "Përdor formatin 24 orë" 72 | 73 | #: src/AppletSettings.vala:52 74 | msgid "Custom date" 75 | msgstr "Data e personalizuar" 76 | 77 | #: src/AppletSettings.vala:58 78 | msgid "Date format syntax" 79 | msgstr "Sintaksa e formatit të datës" 80 | 81 | #: src/AppletSettings.vala:69 82 | msgid "Time and date settings" 83 | msgstr "Cilësimet e orës dhe datës" 84 | -------------------------------------------------------------------------------- /po/tr.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.danielpinto8zz6.budgie-calendar-applet package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | #, fuzzy 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: com.github.danielpinto8zz6.budgie-calendar-applet\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2018-10-27 08:18+0100\n" 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 | "Last-Translator: JihXela , 2018\n" 14 | "Language-Team: Turkish (https://www.transifex.com/danielpinto8zz6/teams/75894/tr/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: tr\n" 19 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 20 | 21 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:8 22 | msgid "Budgie Calendar Applet" 23 | msgstr "" 24 | 25 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:9 26 | msgid "Calendar applet for Budgie Desktop" 27 | msgstr "" 28 | 29 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:11 30 | msgid "" 31 | "A budgie-desktop applet to show hours with custom formats and a calendar in " 32 | "a popover" 33 | msgstr "" 34 | 35 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:24 36 | msgid "Daniel Pinto" 37 | msgstr "" 38 | 39 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:5 40 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:12 41 | msgid "Clock Format" 42 | msgstr "" 43 | 44 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:6 45 | msgid "Enable or disable custom clock format" 46 | msgstr "" 47 | 48 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:11 49 | msgid "\"%e %b %Y - %H:%M\"" 50 | msgstr "" 51 | 52 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:13 53 | msgid "Show the clock at the format you want" 54 | msgstr "" 55 | 56 | #: src/AppletSettings.vala:31 57 | msgid "Show date" 58 | msgstr "Tarihi gster" 59 | 60 | #: src/AppletSettings.vala:38 61 | msgid "Show seconds" 62 | msgstr "Saniyeyi gster" 63 | 64 | #: src/AppletSettings.vala:45 65 | msgid "Use 24h time" 66 | msgstr "24 saat dilimini kullan" 67 | 68 | #: src/AppletSettings.vala:52 69 | msgid "Custom date" 70 | msgstr "zel tarih" 71 | 72 | #: src/AppletSettings.vala:58 73 | msgid "Date format syntax" 74 | msgstr "Tarih format szdizimi" 75 | 76 | #: src/AppletSettings.vala:69 77 | msgid "Time and date settings" 78 | msgstr "Tarih ve zaman ayarlar" 79 | -------------------------------------------------------------------------------- /po/uk.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the com.github.danielpinto8zz6.budgie-calendar-applet package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # daniel pinto , 2021 8 | # zubr139, 2021 9 | # 10 | #, fuzzy 11 | msgid "" 12 | msgstr "" 13 | "Project-Id-Version: com.github.danielpinto8zz6.budgie-calendar-applet\n" 14 | "Report-Msgid-Bugs-To: \n" 15 | "POT-Creation-Date: 2018-10-27 08:18+0100\n" 16 | "PO-Revision-Date: 2021-04-14 17:54+0000\n" 17 | "Last-Translator: zubr139, 2021\n" 18 | "Language-Team: Ukrainian (https://www.transifex.com/danielpinto8zz6/teams/75894/uk/)\n" 19 | "MIME-Version: 1.0\n" 20 | "Content-Type: text/plain; charset=UTF-8\n" 21 | "Content-Transfer-Encoding: 8bit\n" 22 | "Language: uk\n" 23 | "Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n" 24 | 25 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:8 26 | msgid "Budgie Calendar Applet" 27 | msgstr "Аплет-календар Budgie" 28 | 29 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:9 30 | msgid "Calendar applet for Budgie Desktop" 31 | msgstr "Календарний аплет для Budgie Desktop" 32 | 33 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:11 34 | msgid "" 35 | "A budgie-desktop applet to show hours with custom formats and a calendar in " 36 | "a popover" 37 | msgstr "" 38 | "Аплет budgie-desktop для робочого столу для показу годин у користувацьких " 39 | "форматах та календаря у спливаючому вікні" 40 | 41 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.appdata.xml.in:24 42 | msgid "Daniel Pinto" 43 | msgstr "Деніел Пінто" 44 | 45 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:5 46 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:12 47 | msgid "Clock Format" 48 | msgstr "Формат годинника" 49 | 50 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:6 51 | msgid "Enable or disable custom clock format" 52 | msgstr "Увімкнути або вимкнути власний формат годинника" 53 | 54 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:11 55 | msgid "\"%e %b %Y - %H:%M\"" 56 | msgstr "\"%e %b %Y - %H:%M\"" 57 | 58 | #: data/com.github.danielpinto8zz6.budgie-calendar-applet.gschema.xml:13 59 | msgid "Show the clock at the format you want" 60 | msgstr "Показати годинник у потрібному форматі" 61 | 62 | #: src/AppletSettings.vala:31 63 | msgid "Show date" 64 | msgstr "Показати дату" 65 | 66 | #: src/AppletSettings.vala:38 67 | msgid "Show seconds" 68 | msgstr "Показати секунди" 69 | 70 | #: src/AppletSettings.vala:45 71 | msgid "Use 24h time" 72 | msgstr " 24" 73 | 74 | #: src/AppletSettings.vala:52 75 | msgid "Custom date" 76 | msgstr "Спеціальна дата" 77 | 78 | #: src/AppletSettings.vala:58 79 | msgid "Date format syntax" 80 | msgstr "Синтаксис формату дати" 81 | 82 | #: src/AppletSettings.vala:69 83 | msgid "Time and date settings" 84 | msgstr "Параметри часу та дати" 85 | -------------------------------------------------------------------------------- /po/update_linguas.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | tx pull -a --minimum-perc=100 3 | 4 | cd po 5 | rm LINGUAS 6 | 7 | for i in *.po ; do 8 | echo `echo $i|sed 's/.po$//'` >> LINGUAS 9 | done 10 | -------------------------------------------------------------------------------- /screenshot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danielpinto8zz6/budgie-calendar-applet/ff957af23e2f905578167348b2f7b5b6e124b823/screenshot.jpg -------------------------------------------------------------------------------- /src/Applet.vala: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of calendar-applet 3 | * 4 | * Copyright (C) 2017-2018 Daniel Pinto 5 | * Copyright (C) 2014-2016 Ikey Doherty 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | */ 12 | 13 | namespace CalendarApplet { 14 | public class Plugin : Budgie.Plugin, Peas.ExtensionBase { 15 | public Budgie.Applet get_panel_widget (string uuid) { 16 | return new Applet (); 17 | } 18 | } 19 | 20 | enum ClockFormat { 21 | TWENTYFOUR = 0, 22 | TWELVE = 1; 23 | } 24 | 25 | public const string CALENDAR_MIME = "text/calendar"; 26 | 27 | public class Applet : Budgie.Applet { 28 | protected Gtk.EventBox widget; 29 | protected Gtk.Box layout; 30 | protected Gtk.Label clock; 31 | protected Gtk.Label date_label; 32 | protected Gtk.Label seconds_label; 33 | 34 | protected bool ampm = false; 35 | protected bool show_custom_format = false; 36 | protected bool show_seconds = false; 37 | protected bool show_date = false; 38 | 39 | protected string ? custom_format = null; 40 | 41 | private DateTime time; 42 | 43 | protected Settings settings; 44 | protected Settings applet_settings; 45 | 46 | Budgie.Popover ? popover = null; 47 | 48 | Gtk.Orientation orient = Gtk.Orientation.HORIZONTAL; 49 | 50 | private unowned Budgie.PopoverManager ? manager = null; 51 | 52 | private Gtk.Label day_of_week_header; 53 | private Gtk.Label date_header; 54 | 55 | private Gtk.Calendar calendar; 56 | 57 | public override void panel_position_changed (Budgie.PanelPosition position) { 58 | if (position == Budgie.PanelPosition.LEFT || position == Budgie.PanelPosition.RIGHT) { 59 | this.orient = Gtk.Orientation.VERTICAL; 60 | } else { 61 | this.orient = Gtk.Orientation.HORIZONTAL; 62 | } 63 | this.seconds_label.set_text (""); 64 | this.layout.set_orientation (this.orient); 65 | this.update_clock (); 66 | } 67 | 68 | public Applet () { 69 | GLib.Intl.setlocale (GLib.LocaleCategory.ALL, ""); 70 | GLib.Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.LOCALE_DIR); 71 | GLib.Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8"); 72 | GLib.Intl.textdomain (Config.GETTEXT_PACKAGE); 73 | 74 | widget = new Gtk.EventBox (); 75 | layout = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 2); 76 | 77 | clock = new Gtk.Label (""); 78 | time = new DateTime.now_local (); 79 | widget.add (layout); 80 | 81 | layout.pack_start (clock, false, false, 0); 82 | layout.margin = 0; 83 | layout.border_width = 0; 84 | 85 | seconds_label = new Gtk.Label (""); 86 | seconds_label.get_style_context ().add_class ("dim-label"); 87 | layout.pack_start (seconds_label, false, false, 0); 88 | seconds_label.no_show_all = true; 89 | seconds_label.hide (); 90 | 91 | date_label = new Gtk.Label (""); 92 | layout.pack_start (date_label, false, false, 0); 93 | date_label.no_show_all = true; 94 | date_label.hide (); 95 | 96 | clock.valign = Gtk.Align.CENTER; 97 | seconds_label.valign = Gtk.Align.CENTER; 98 | date_label.valign = Gtk.Align.CENTER; 99 | 100 | settings = new Settings ("org.gnome.desktop.interface"); 101 | applet_settings = new Settings ("com.github.danielpinto8zz6.budgie-calendar-applet"); 102 | 103 | get_style_context ().add_class ("budgie-clock-applet"); 104 | 105 | // Create a submenu system 106 | popover = new Budgie.Popover (widget); 107 | 108 | day_of_week_header = new Gtk.Label (""); 109 | day_of_week_header.get_style_context ().add_class ("h1"); 110 | day_of_week_header.set_halign (Gtk.Align.START); 111 | day_of_week_header.margin_bottom = 6; 112 | day_of_week_header.margin_start = 6; 113 | 114 | date_header = new Gtk.Label (""); 115 | date_header.get_style_context ().add_class ("h2"); 116 | date_header.set_halign (Gtk.Align.START); 117 | date_header.margin_start = 6; 118 | date_header.margin_bottom = 12; 119 | 120 | calendar = new Gtk.Calendar (); 121 | 122 | var main_grid = new Gtk.Grid (); 123 | main_grid.orientation = Gtk.Orientation.VERTICAL; 124 | main_grid.margin = 6; 125 | main_grid.get_style_context ().add_class ("budgie-calendar-applet"); 126 | 127 | main_grid.add (day_of_week_header); 128 | main_grid.add (date_header); 129 | main_grid.add (calendar); 130 | 131 | popover.add (main_grid); 132 | 133 | widget.button_press_event.connect ((e)=> { 134 | if (e.button != 1) { 135 | return Gdk.EVENT_PROPAGATE; 136 | } 137 | if (popover.get_visible ()) { 138 | popover.hide (); 139 | } else { 140 | update_headers (); 141 | calendar.day = time.get_day_of_month (); 142 | calendar.month = time.get_month () - 1; 143 | calendar.year = time.get_year (); 144 | this.manager.show_popover (widget); 145 | } 146 | return Gdk.EVENT_STOP; 147 | }); 148 | 149 | Timeout.add_seconds_full (GLib.Priority.LOW, 1, update_clock); 150 | 151 | settings.bind ("clock-show-date", date_label, "visible", SettingsBindFlags.DEFAULT); 152 | settings.bind ("clock-show-seconds", seconds_label, "visible", SettingsBindFlags.DEFAULT); 153 | 154 | settings.changed.connect (on_settings_change); 155 | applet_settings.changed.connect (on_settings_change); 156 | 157 | update_clock (); 158 | update_headers (); 159 | add (widget); 160 | 161 | on_settings_change ("clock-format"); 162 | on_settings_change ("clock-show-seconds"); 163 | on_settings_change ("clock-show-date"); 164 | on_settings_change ("show-custom-format"); 165 | on_settings_change ("custom-format"); 166 | on_settings_change ("calendar-show-week-numbers"); 167 | 168 | popover.get_child ().show_all (); 169 | 170 | show_all (); 171 | } 172 | 173 | public override void update_popovers (Budgie.PopoverManager ? manager) { 174 | this.manager = manager; 175 | manager.register_popover (widget, popover); 176 | } 177 | 178 | protected void on_settings_change (string key) { 179 | switch (key) { 180 | case "clock-format" : 181 | ClockFormat f = (ClockFormat)settings.get_enum (key); 182 | ampm = f == ClockFormat.TWELVE; 183 | this.update_clock (); 184 | break; 185 | case "clock-show-seconds" : 186 | show_seconds = settings.get_boolean (key); 187 | this.update_clock (); 188 | break; 189 | case "clock-show-date" : 190 | show_date = settings.get_boolean (key); 191 | this.update_clock (); 192 | break; 193 | case "show-custom-format" : 194 | show_custom_format = applet_settings.get_boolean (key); 195 | if (show_custom_format) { 196 | settings.set_boolean ("clock-show-seconds", false); 197 | settings.set_boolean ("clock-show-date", false); 198 | } 199 | this.update_clock (); 200 | break; 201 | case "custom-format" : 202 | custom_format = applet_settings.get_string ("custom-format"); 203 | this.update_clock (); 204 | break; 205 | case "calendar-show-week-numbers" : 206 | calendar.show_week_numbers = applet_settings.get_boolean ("calendar-show-week-numbers"); 207 | break; 208 | } 209 | } 210 | 211 | 212 | /** 213 | * Update the date if necessary 214 | */ 215 | protected void update_date () { 216 | if (!show_date) { 217 | return; 218 | } 219 | string ftime; 220 | if (this.orient == Gtk.Orientation.HORIZONTAL) { 221 | ftime = "%x"; 222 | } else { 223 | ftime = "%b %d"; 224 | } 225 | 226 | // Prevent unnecessary redraws 227 | var old = date_label.get_label (); 228 | var ctime = time.format (ftime); 229 | if (old == ctime) { 230 | return; 231 | } 232 | 233 | date_label.set_markup (ctime); 234 | } 235 | 236 | /** 237 | * Update the seconds if necessary 238 | */ 239 | protected void update_seconds () { 240 | if (!show_seconds) { 241 | return; 242 | } 243 | string ftime; 244 | if (this.orient == Gtk.Orientation.HORIZONTAL) { 245 | ftime = ""; 246 | } else { 247 | ftime = "%S"; 248 | } 249 | 250 | // Prevent unnecessary redraws 251 | var old = date_label.get_label (); 252 | var ctime = time.format (ftime); 253 | if (old == ctime) { 254 | return; 255 | } 256 | 257 | seconds_label.set_markup (ctime); 258 | } 259 | 260 | /** 261 | * This is called once every second, updating the time 262 | */ 263 | protected bool update_clock () { 264 | time = new DateTime.now_local (); 265 | string format; 266 | 267 | if (show_custom_format) { 268 | format = custom_format; 269 | } else if (ampm) { 270 | format = "%l:%M"; 271 | if (orient == Gtk.Orientation.HORIZONTAL) { 272 | if (show_seconds) { 273 | format += ":%S"; 274 | } 275 | } 276 | format += " %p"; 277 | } else { 278 | format = "%H:%M"; 279 | if (orient == Gtk.Orientation.HORIZONTAL) { 280 | if (show_seconds) { 281 | format += ":%S"; 282 | } 283 | } 284 | } 285 | 286 | string ftime; 287 | if (this.orient == Gtk.Orientation.HORIZONTAL) { 288 | ftime = " %s ".printf (format); 289 | } else { 290 | ftime = " %s ".printf (format); 291 | } 292 | 293 | if (!show_custom_format) { 294 | this.update_date (); 295 | this.update_seconds (); 296 | } 297 | 298 | // Prevent unnecessary redraws 299 | var old = clock.get_label (); 300 | var ctime = time.format (ftime); 301 | if (old == ctime) { 302 | return true; 303 | } 304 | 305 | clock.set_markup (ctime); 306 | this.queue_draw (); 307 | 308 | return true; 309 | } 310 | 311 | public void update_headers () { 312 | var time = new DateTime.now_local (); 313 | string day_of_week = time.format ("%A"); 314 | day_of_week = day_of_week.substring (0,1).up () + day_of_week.substring (1); 315 | day_of_week_header.set_label (day_of_week); 316 | 317 | string date = time.format ("%e %B %Y"); 318 | date_header.set_label (date); 319 | } 320 | 321 | public override bool supports_settings () { 322 | return true; 323 | } 324 | 325 | public override Gtk.Widget ? get_settings_ui () { 326 | return new CalendarApplet.AppletSettings (); 327 | } 328 | } 329 | } 330 | 331 | [ModuleInit] 332 | public void peas_register_types (TypeModule module) { 333 | // boilerplate - all modules need this 334 | var objmodule = module as Peas.ObjectModule; 335 | objmodule.register_extension_type (typeof (Budgie.Plugin), typeof (CalendarApplet.Plugin)); 336 | } -------------------------------------------------------------------------------- /src/AppletSettings.vala: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of calendar-applet 3 | * 4 | * Copyright (C) 2018 Daniel Pinto 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | */ 11 | 12 | namespace CalendarApplet { 13 | public class AppletSettings : Gtk.Grid { 14 | protected Settings settings; 15 | protected Settings applet_settings; 16 | 17 | private Gtk.Switch switch_date; 18 | private Gtk.Switch switch_format; 19 | private Gtk.Switch switch_seconds; 20 | private Gtk.Switch switch_week_numbers; 21 | private Gtk.Switch switch_custom_format; 22 | private Gtk.Entry custom_format; 23 | 24 | public AppletSettings () { 25 | Object (margin: 6, 26 | row_spacing: 6, 27 | column_spacing: 6); 28 | 29 | settings = new Settings ("org.gnome.desktop.interface"); 30 | applet_settings = new Settings ("com.github.danielpinto8zz6.budgie-calendar-applet"); 31 | 32 | var about = new Gtk.Button.from_icon_name ("dialog-information-symbolic", Gtk.IconSize.MENU); 33 | about.clicked.connect (about_dialog); 34 | 35 | var label_date = new Gtk.Label (_ ("Show date")); 36 | label_date.set_halign (Gtk.Align.START); 37 | label_date.set_hexpand (true); 38 | switch_date = new Gtk.Switch (); 39 | switch_date.set_halign (Gtk.Align.END); 40 | switch_date.set_hexpand (true); 41 | 42 | var label_seconds = new Gtk.Label (_ ("Show seconds")); 43 | label_seconds.set_halign (Gtk.Align.START); 44 | label_seconds.set_hexpand (true); 45 | switch_seconds = new Gtk.Switch (); 46 | switch_seconds.set_halign (Gtk.Align.END); 47 | switch_seconds.set_hexpand (true); 48 | 49 | var label_format = new Gtk.Label (_ ("Use 24h time")); 50 | label_format.set_halign (Gtk.Align.START); 51 | label_format.set_hexpand (true); 52 | switch_format = new Gtk.Switch (); 53 | switch_format.set_halign (Gtk.Align.END); 54 | switch_format.set_hexpand (true); 55 | 56 | var label_week_numbers = new Gtk.Label (_ ("Show week numbers")); 57 | label_week_numbers.set_halign (Gtk.Align.START); 58 | label_week_numbers.set_hexpand (true); 59 | switch_week_numbers = new Gtk.Switch (); 60 | switch_week_numbers.set_halign (Gtk.Align.END); 61 | switch_week_numbers.set_hexpand (true); 62 | 63 | var label_switch_custom_format = new Gtk.Label (_ ("Custom date")); 64 | label_switch_custom_format.set_halign (Gtk.Align.START); 65 | label_switch_custom_format.set_hexpand (true); 66 | switch_custom_format = new Gtk.Switch (); 67 | switch_custom_format.set_halign (Gtk.Align.END); 68 | 69 | custom_format = new Gtk.Entry (); 70 | custom_format.set_halign (Gtk.Align.FILL); 71 | 72 | string label_link = (_ ("Date format syntax")); 73 | Gtk.LinkButton linkbutton = new Gtk.LinkButton.with_label ("http://www.foragoodstrftime.com", label_link); 74 | 75 | var time_and_date_settings = new Gtk.Button.with_label (_ ("Time and date settings")); 76 | time_and_date_settings.clicked.connect (open_datetime_settings); 77 | 78 | attach (about, 0, 0, 2, 1); 79 | attach (label_date, 0, 2, 1, 1); 80 | attach (switch_date, 1, 2, 1, 1); 81 | attach (label_seconds, 0, 3, 1, 1); 82 | attach (switch_seconds, 1, 3, 1, 1); 83 | attach (label_format, 0, 4, 1, 1); 84 | attach (switch_format, 1, 4, 1, 1); 85 | attach (label_week_numbers, 0, 5, 1, 1); 86 | attach (switch_week_numbers, 1, 5, 1, 1); 87 | attach (label_switch_custom_format, 0, 6, 1, 1); 88 | attach (switch_custom_format, 1, 6, 1, 1); 89 | attach (custom_format, 0, 7, 2, 1); 90 | attach (linkbutton, 0, 8, 2, 1); 91 | attach (time_and_date_settings, 0, 9, 2, 1); 92 | 93 | settings.bind ("clock-show-date", switch_date, "active", SettingsBindFlags.DEFAULT); 94 | settings.bind ("clock-show-seconds", switch_seconds, "active", SettingsBindFlags.DEFAULT); 95 | applet_settings.bind ("show-custom-format", switch_custom_format, "active", SettingsBindFlags.DEFAULT); 96 | applet_settings.bind ("custom-format", custom_format, "text", SettingsBindFlags.DEFAULT); 97 | applet_settings.bind ("calendar-show-week-numbers", switch_week_numbers, "active", SettingsBindFlags.DEFAULT); 98 | 99 | apply_switch_custom_format(); 100 | switch_custom_format.notify["active"].connect (apply_switch_custom_format); 101 | 102 | on_settings_changed ("clock-format"); 103 | switch_format.notify["active"].connect (() => { 104 | ClockFormat f = (switch_format.active ? ClockFormat.TWENTYFOUR : ClockFormat.TWELVE); 105 | settings.set_enum ("clock-format", f); 106 | }); 107 | 108 | settings.changed.connect (on_settings_changed); 109 | 110 | show_all (); 111 | } 112 | 113 | private void apply_switch_custom_format () { 114 | var active = switch_custom_format.active; 115 | custom_format.set_sensitive (active); 116 | switch_date.set_sensitive (!active); 117 | switch_seconds.set_sensitive (!active); 118 | switch_format.set_sensitive (!active); 119 | } 120 | 121 | private void on_settings_changed (string key) { 122 | switch (key) { 123 | case "clock-format" : 124 | ClockFormat f = (ClockFormat)settings.get_enum ("clock-format"); 125 | switch_format.active = (f == ClockFormat.TWENTYFOUR); 126 | break; 127 | } 128 | } 129 | 130 | private void open_datetime_settings () { 131 | var list = new List(); 132 | list.append ("datetime"); 133 | 134 | try { 135 | var appinfo = 136 | AppInfo.create_from_commandline ("gnome-control-center", 137 | null, 138 | AppInfoCreateFlags.SUPPORTS_URIS); 139 | appinfo.launch_uris (list, null); 140 | } catch (Error e) { 141 | message ("Unable to launch gnome-control-center datetime: %s", e.message); 142 | } 143 | } 144 | 145 | void about_dialog () { 146 | Gtk.AboutDialog dialog = new Gtk.AboutDialog (); 147 | dialog.set_destroy_with_parent (true); 148 | dialog.set_modal (true); 149 | 150 | dialog.authors = { "Daniel Pinto " }; 151 | dialog.documenters = null; // Real inventors don't document. 152 | dialog.translator_credits = null; // We only need a scottish version. 153 | 154 | dialog.program_name = "Budgie Calendar Applet"; 155 | dialog.comments = "A budgie-desktop applet to show hours, date, and Calendar"; 156 | dialog.copyright = "Copyright © 2016-2018 danielpinto8zz6"; 157 | dialog.version = Config.PACKAGE_VERSION; 158 | dialog.logo_icon_name = "calendar"; 159 | 160 | dialog.license_type = Gtk.License.GPL_2_0; 161 | 162 | dialog.website = "https://github.com/danielpinto8zz6/budgie-calendar-applet"; 163 | dialog.website_label = "budgie-calendar-applet"; 164 | 165 | dialog.response.connect ((response_id) => { 166 | if (response_id == Gtk.ResponseType.CANCEL || response_id == Gtk.ResponseType.DELETE_EVENT) { 167 | dialog.hide_on_delete (); 168 | } 169 | }); 170 | dialog.present (); 171 | } 172 | } 173 | } -------------------------------------------------------------------------------- /src/config.vala.in: -------------------------------------------------------------------------------- 1 | namespace Config { 2 | public const string PACKAGE_NAME = @PACKAGE_NAME@; 3 | public const string PACKAGE_VERSION = @PACKAGE_VERSION@; 4 | public const string GETTEXT_PACKAGE = @GETTEXT_PACKAGE@; 5 | public const string DATA_DIR = @DATA_DIR@; 6 | public const string LOCALE_DIR = @LOCALE_DIR@; 7 | } -------------------------------------------------------------------------------- /src/meson.build: -------------------------------------------------------------------------------- 1 | project_name = meson.project_name() 2 | project_version = meson.project_version() 3 | 4 | prefix = get_option('prefix') 5 | bindir = get_option('bindir') 6 | datadir = get_option('datadir') 7 | localedir = get_option('localedir') 8 | 9 | conf_data = configuration_data() 10 | conf_data.set_quoted('PACKAGE_NAME', project_name) 11 | conf_data.set_quoted('PACKAGE_VERSION', project_version) 12 | conf_data.set_quoted('GETTEXT_PACKAGE', project_name) 13 | conf_data.set_quoted('DATA_DIR', join_paths(prefix, datadir)) 14 | conf_data.set_quoted('LOCALE_DIR', join_paths(prefix, localedir)) 15 | 16 | config_header = configure_file( 17 | input: 'config.vala.in', 18 | output: 'config.vala', 19 | configuration: conf_data 20 | ) 21 | 22 | calendar_applet_sources = ['Applet.vala', 23 | 'AppletSettings.vala'] 24 | 25 | calendar_applet_deps = [dependency('gtk+-3.0', version: '>=3.18'), 26 | dependency('budgie-1.0', version: '>=2')] 27 | 28 | calendar_applet_vala_args = ['--target-glib=2.50', config_header] 29 | 30 | shared_library('calendarapplet', calendar_applet_sources, 31 | dependencies: calendar_applet_deps, 32 | vala_args: calendar_applet_vala_args, 33 | install: true, 34 | install_dir: lib_install_dir) 35 | -------------------------------------------------------------------------------- /uncrustify.cfg: -------------------------------------------------------------------------------- 1 | # Uncrustify 0.59 2 | 3 | # 4 | # General options 5 | # 6 | 7 | # The type of line endings 8 | newlines = auto # auto/lf/crlf/cr 9 | 10 | # The original size of tabs in the input 11 | input_tab_size = 4 # number 12 | 13 | # The size of tabs in the output (only used if align_with_tabs=true) 14 | output_tab_size = 4 # number 15 | 16 | # The ASCII value of the string escape char, usually 92 (\) or 94 (^). (Pawn) 17 | string_escape_char = 92 # number 18 | 19 | # Alternate string escape char for Pawn. Only works right before the quote char. 20 | string_escape_char2 = 0 # number 21 | 22 | # Allow interpreting '>=' and '>>=' as part of a template in 'void f(list>=val);'. 23 | # If true (default), 'assert(x<0 && y>=3)' will be broken. 24 | # Improvements to template detection may make this option obsolete. 25 | tok_split_gte = false # false/true 26 | 27 | # Control what to do with the UTF-8 BOM (recommed 'remove') 28 | utf8_bom = ignore # ignore/add/remove/force 29 | 30 | # If the file only contains chars between 128 and 255 and is not UTF-8, then output as UTF-8 31 | utf8_byte = false # false/true 32 | 33 | # Force the output encoding to UTF-8 34 | utf8_force = false # false/true 35 | 36 | # 37 | # Indenting 38 | # 39 | 40 | # The number of columns to indent per level. 41 | # Usually 2, 3, 4, or 8. 42 | indent_columns = 4 # number 43 | 44 | # The continuation indent. If non-zero, this overrides the indent of '(' and '=' continuation indents. 45 | # For FreeBSD, this is set to 4. 46 | indent_continue = 0 # number 47 | 48 | # How to use tabs when indenting code 49 | # 0=spaces only 50 | # 1=indent with tabs to brace level, align with spaces 51 | # 2=indent and align with tabs, using spaces when not on a tabstop 52 | indent_with_tabs = 0 # number 53 | 54 | # Comments that are not a brace level are indented with tabs on a tabstop. 55 | # Requires indent_with_tabs=2. If false, will use spaces. 56 | indent_cmt_with_tabs = false # false/true 57 | 58 | # Whether to indent strings broken by '\' so that they line up 59 | indent_align_string = false # false/true 60 | 61 | # The number of spaces to indent multi-line XML strings. 62 | # Requires indent_align_string=True 63 | indent_xml_string = 0 # number 64 | 65 | # Spaces to indent '{' from level 66 | indent_brace = 0 # number 67 | 68 | # Whether braces are indented to the body level 69 | indent_braces = false # false/true 70 | 71 | # Disabled indenting function braces if indent_braces is true 72 | indent_braces_no_func = true # false/true 73 | 74 | # Disabled indenting class braces if indent_braces is true 75 | indent_braces_no_class = true # false/true 76 | 77 | # Disabled indenting struct braces if indent_braces is true 78 | indent_braces_no_struct = true # false/true 79 | 80 | # Indent based on the size of the brace parent, i.e. 'if' => 3 spaces, 'for' => 4 spaces, etc. 81 | indent_brace_parent = false # false/true 82 | 83 | # Whether the 'namespace' body is indented 84 | indent_namespace = true # false/true 85 | 86 | # The number of spaces to indent a namespace block 87 | indent_namespace_level = 0 # number 88 | 89 | # If the body of the namespace is longer than this number, it won't be indented. 90 | # Requires indent_namespace=true. Default=0 (no limit) 91 | indent_namespace_limit = 0 # number 92 | 93 | # Whether the 'extern "C"' body is indented 94 | indent_extern = false # false/true 95 | 96 | # Whether the 'class' body is indented 97 | indent_class = true # false/true 98 | 99 | # Whether to indent the stuff after a leading class colon 100 | indent_class_colon = false # false/true 101 | 102 | # Additional indenting for constructor initializer list 103 | indent_ctor_init = 0 # number 104 | 105 | # False=treat 'else\nif' as 'else if' for indenting purposes 106 | # True=indent the 'if' one level 107 | indent_else_if = false # false/true 108 | 109 | # Amount to indent variable declarations after a open brace. neg=relative, pos=absolute 110 | indent_var_def_blk = 0 # number 111 | 112 | # Indent continued variable declarations instead of aligning. 113 | indent_var_def_cont = false # false/true 114 | 115 | # True: indent continued function call parameters one indent level 116 | # False: align parameters under the open paren 117 | indent_func_call_param = false # false/true 118 | 119 | # Same as indent_func_call_param, but for function defs 120 | indent_func_def_param = false # false/true 121 | 122 | # Same as indent_func_call_param, but for function protos 123 | indent_func_proto_param = false # false/true 124 | 125 | # Same as indent_func_call_param, but for class declarations 126 | indent_func_class_param = false # false/true 127 | 128 | # Same as indent_func_call_param, but for class variable constructors 129 | indent_func_ctor_var_param = false # false/true 130 | 131 | # Same as indent_func_call_param, but for templates 132 | indent_template_param = false # false/true 133 | 134 | # Double the indent for indent_func_xxx_param options 135 | indent_func_param_double = false # false/true 136 | 137 | # Indentation column for standalone 'const' function decl/proto qualifier 138 | indent_func_const = 0 # number 139 | 140 | # Indentation column for standalone 'throw' function decl/proto qualifier 141 | indent_func_throw = 0 # number 142 | 143 | # The number of spaces to indent a continued '->' or '.' 144 | # Usually set to 0, 1, or indent_columns. 145 | indent_member = 0 # number 146 | 147 | # Spaces to indent single line ('//') comments on lines before code 148 | indent_sing_line_comments = 0 # number 149 | 150 | # If set, will indent trailing single line ('//') comments relative 151 | # to the code instead of trying to keep the same absolute column 152 | indent_relative_single_line_comments = false # false/true 153 | 154 | # Spaces to indent 'case' from 'switch' 155 | # Usually 0 or indent_columns. 156 | indent_switch_case = 0 # number 157 | 158 | # Spaces to shift the 'case' line, without affecting any other lines 159 | # Usually 0. 160 | indent_case_shift = 0 # number 161 | 162 | # Spaces to indent '{' from 'case'. 163 | # By default, the brace will appear under the 'c' in case. 164 | # Usually set to 0 or indent_columns. 165 | indent_case_brace = 0 # number 166 | 167 | # Whether to indent comments found in first column 168 | indent_col1_comment = false # false/true 169 | 170 | # How to indent goto labels 171 | # >0 : absolute column where 1 is the leftmost column 172 | # <=0 : subtract from brace indent 173 | indent_label = 1 # number 174 | 175 | # Same as indent_label, but for access specifiers that are followed by a colon 176 | indent_access_spec = 1 # number 177 | 178 | # Indent the code after an access specifier by one level. 179 | # If set, this option forces 'indent_access_spec=0' 180 | indent_access_spec_body = false # false/true 181 | 182 | # If an open paren is followed by a newline, indent the next line so that it lines up after the open paren (not recommended) 183 | indent_paren_nl = false # false/true 184 | 185 | # Controls the indent of a close paren after a newline. 186 | # 0: Indent to body level 187 | # 1: Align under the open paren 188 | # 2: Indent to the brace level 189 | indent_paren_close = 0 # number 190 | 191 | # Controls the indent of a comma when inside a paren.If TRUE, aligns under the open paren 192 | indent_comma_paren = false # false/true 193 | 194 | # Controls the indent of a BOOL operator when inside a paren.If TRUE, aligns under the open paren 195 | indent_bool_paren = false # false/true 196 | 197 | # If 'indent_bool_paren' is true, controls the indent of the first expression. If TRUE, aligns the first expression to the following ones 198 | indent_first_bool_expr = false # false/true 199 | 200 | # If an open square is followed by a newline, indent the next line so that it lines up after the open square (not recommended) 201 | indent_square_nl = false # false/true 202 | 203 | # Don't change the relative indent of ESQL/C 'EXEC SQL' bodies 204 | indent_preserve_sql = false # false/true 205 | 206 | # Align continued statements at the '='. Default=True 207 | # If FALSE or the '=' is followed by a newline, the next line is indent one tab. 208 | indent_align_assign = true # false/true 209 | 210 | # 211 | # Spacing options 212 | # 213 | 214 | # Add or remove space around arithmetic operator '+', '-', '/', '*', etc 215 | sp_arith = ignore # ignore/add/remove/force 216 | 217 | # Add or remove space around assignment operator '=', '+=', etc 218 | sp_assign = ignore # ignore/add/remove/force 219 | 220 | # Add or remove space around assignment operator '=' in a prototype 221 | sp_assign_default = ignore # ignore/add/remove/force 222 | 223 | # Add or remove space before assignment operator '=', '+=', etc. Overrides sp_assign. 224 | sp_before_assign = ignore # ignore/add/remove/force 225 | 226 | # Add or remove space after assignment operator '=', '+=', etc. Overrides sp_assign. 227 | sp_after_assign = ignore # ignore/add/remove/force 228 | 229 | # Add or remove space around assignment '=' in enum 230 | sp_enum_assign = ignore # ignore/add/remove/force 231 | 232 | # Add or remove space before assignment '=' in enum. Overrides sp_enum_assign. 233 | sp_enum_before_assign = ignore # ignore/add/remove/force 234 | 235 | # Add or remove space after assignment '=' in enum. Overrides sp_enum_assign. 236 | sp_enum_after_assign = ignore # ignore/add/remove/force 237 | 238 | # Add or remove space around preprocessor '##' concatenation operator. Default=Add 239 | sp_pp_concat = add # ignore/add/remove/force 240 | 241 | # Add or remove space after preprocessor '#' stringify operator. Also affects the '#@' charizing operator. Default=Add 242 | sp_pp_stringify = add # ignore/add/remove/force 243 | 244 | # Add or remove space around boolean operators '&&' and '||' 245 | sp_bool = ignore # ignore/add/remove/force 246 | 247 | # Add or remove space around compare operator '<', '>', '==', etc 248 | sp_compare = ignore # ignore/add/remove/force 249 | 250 | # Add or remove space inside '(' and ')' 251 | sp_inside_paren = remove # ignore/add/remove/force 252 | 253 | # Add or remove space between nested parens 254 | sp_paren_paren = ignore # ignore/add/remove/force 255 | 256 | # Whether to balance spaces inside nested parens 257 | sp_balance_nested_parens = false # false/true 258 | 259 | # Add or remove space between ')' and '{' 260 | sp_paren_brace = add # ignore/add/remove/force 261 | 262 | # Add or remove space before pointer star '*' 263 | sp_before_ptr_star = ignore # ignore/add/remove/force 264 | 265 | # Add or remove space before pointer star '*' that isn't followed by a variable name 266 | # If set to 'ignore', sp_before_ptr_star is used instead. 267 | sp_before_unnamed_ptr_star = ignore # ignore/add/remove/force 268 | 269 | # Add or remove space between pointer stars '*' 270 | sp_between_ptr_star = ignore # ignore/add/remove/force 271 | 272 | # Add or remove space after pointer star '*', if followed by a word. 273 | sp_after_ptr_star = ignore # ignore/add/remove/force 274 | 275 | # Add or remove space after a pointer star '*', if followed by a func proto/def. 276 | sp_after_ptr_star_func = ignore # ignore/add/remove/force 277 | 278 | # Add or remove space before a pointer star '*', if followed by a func proto/def. 279 | sp_before_ptr_star_func = ignore # ignore/add/remove/force 280 | 281 | # Add or remove space before a reference sign '&' 282 | sp_before_byref = ignore # ignore/add/remove/force 283 | 284 | # Add or remove space before a reference sign '&' that isn't followed by a variable name 285 | # If set to 'ignore', sp_before_byref is used instead. 286 | sp_before_unnamed_byref = ignore # ignore/add/remove/force 287 | 288 | # Add or remove space after reference sign '&', if followed by a word. 289 | sp_after_byref = ignore # ignore/add/remove/force 290 | 291 | # Add or remove space after a reference sign '&', if followed by a func proto/def. 292 | sp_after_byref_func = ignore # ignore/add/remove/force 293 | 294 | # Add or remove space before a reference sign '&', if followed by a func proto/def. 295 | sp_before_byref_func = ignore # ignore/add/remove/force 296 | 297 | # Add or remove space between type and word. Default=Force 298 | sp_after_type = force # ignore/add/remove/force 299 | 300 | # Add or remove space in 'template <' vs 'template<'. 301 | # If set to ignore, sp_before_angle is used. 302 | sp_template_angle = ignore # ignore/add/remove/force 303 | 304 | # Add or remove space before '<>' 305 | sp_before_angle = ignore # ignore/add/remove/force 306 | 307 | # Add or remove space inside '<' and '>' 308 | sp_inside_angle = ignore # ignore/add/remove/force 309 | 310 | # Add or remove space after '<>' 311 | sp_after_angle = ignore # ignore/add/remove/force 312 | 313 | # Add or remove space between '<>' and '(' as found in 'new List();' 314 | sp_angle_paren = ignore # ignore/add/remove/force 315 | 316 | # Add or remove space between '<>' and a word as in 'List m;' 317 | sp_angle_word = ignore # ignore/add/remove/force 318 | 319 | # Add or remove space between '>' and '>' in '>>' (template stuff C++/C# only). Default=Add 320 | sp_angle_shift = add # ignore/add/remove/force 321 | 322 | # Add or remove space before '(' of 'if', 'for', 'switch', and 'while' 323 | sp_before_sparen = add # ignore/add/remove/force 324 | 325 | # Add or remove space inside if-condition '(' and ')' 326 | sp_inside_sparen = ignore # ignore/add/remove/force 327 | 328 | # Add or remove space before if-condition ')'. Overrides sp_inside_sparen. 329 | sp_inside_sparen_close = ignore # ignore/add/remove/force 330 | 331 | # Add or remove space after ')' of 'if', 'for', 'switch', and 'while' 332 | sp_after_sparen = ignore # ignore/add/remove/force 333 | 334 | # Add or remove space between ')' and '{' of 'if', 'for', 'switch', and 'while' 335 | sp_sparen_brace = ignore # ignore/add/remove/force 336 | 337 | # Add or remove space between 'invariant' and '(' in the D language. 338 | sp_invariant_paren = ignore # ignore/add/remove/force 339 | 340 | # Add or remove space after the ')' in 'invariant (C) c' in the D language. 341 | sp_after_invariant_paren = ignore # ignore/add/remove/force 342 | 343 | # Add or remove space before empty statement ';' on 'if', 'for' and 'while' 344 | sp_special_semi = ignore # ignore/add/remove/force 345 | 346 | # Add or remove space before ';'. Default=Remove 347 | sp_before_semi = remove # ignore/add/remove/force 348 | 349 | # Add or remove space before ';' in non-empty 'for' statements 350 | sp_before_semi_for = ignore # ignore/add/remove/force 351 | 352 | # Add or remove space before a semicolon of an empty part of a for statement. 353 | sp_before_semi_for_empty = ignore # ignore/add/remove/force 354 | 355 | # Add or remove space after ';', except when followed by a comment. Default=Add 356 | sp_after_semi = add # ignore/add/remove/force 357 | 358 | # Add or remove space after ';' in non-empty 'for' statements. Default=Force 359 | sp_after_semi_for = force # ignore/add/remove/force 360 | 361 | # Add or remove space after the final semicolon of an empty part of a for statement: for ( ; ; ). 362 | sp_after_semi_for_empty = ignore # ignore/add/remove/force 363 | 364 | # Add or remove space before '[' (except '[]') 365 | sp_before_square = ignore # ignore/add/remove/force 366 | 367 | # Add or remove space before '[]' 368 | sp_before_squares = ignore # ignore/add/remove/force 369 | 370 | # Add or remove space inside a non-empty '[' and ']' 371 | sp_inside_square = ignore # ignore/add/remove/force 372 | 373 | # Add or remove space after ',' 374 | sp_after_comma = ignore # ignore/add/remove/force 375 | 376 | # Add or remove space before ',' 377 | sp_before_comma = remove # ignore/add/remove/force 378 | 379 | # Add or remove space between an open paren and comma: '(,' vs '( ,' 380 | sp_paren_comma = force # ignore/add/remove/force 381 | 382 | # Add or remove space before the variadic '...' when preceded by a non-punctuator 383 | sp_before_ellipsis = ignore # ignore/add/remove/force 384 | 385 | # Add or remove space after class ':' 386 | sp_after_class_colon = ignore # ignore/add/remove/force 387 | 388 | # Add or remove space before class ':' 389 | sp_before_class_colon = ignore # ignore/add/remove/force 390 | 391 | # Add or remove space before case ':'. Default=Remove 392 | sp_before_case_colon = add # ignore/add/remove/force 393 | 394 | # Add or remove space between 'operator' and operator sign 395 | sp_after_operator = ignore # ignore/add/remove/force 396 | 397 | # Add or remove space between the operator symbol and the open paren, as in 'operator ++(' 398 | sp_after_operator_sym = ignore # ignore/add/remove/force 399 | 400 | # Add or remove space after C/D cast, i.e. 'cast(int)a' vs 'cast(int) a' or '(int)a' vs '(int) a' 401 | sp_after_cast = remove # ignore/add/remove/force 402 | 403 | # Add or remove spaces inside cast parens 404 | sp_inside_paren_cast = ignore # ignore/add/remove/force 405 | 406 | # Add or remove space between the type and open paren in a C++ cast, i.e. 'int(exp)' vs 'int (exp)' 407 | sp_cpp_cast_paren = add # ignore/add/remove/force 408 | 409 | # Add or remove space between 'sizeof' and '(' 410 | sp_sizeof_paren = add # ignore/add/remove/force 411 | 412 | # Add or remove space after the tag keyword (Pawn) 413 | sp_after_tag = ignore # ignore/add/remove/force 414 | 415 | # Add or remove space inside enum '{' and '}' 416 | sp_inside_braces_enum = add # ignore/add/remove/force 417 | 418 | # Add or remove space inside struct/union '{' and '}' 419 | sp_inside_braces_struct = ignore # ignore/add/remove/force 420 | 421 | # Add or remove space inside '{' and '}' 422 | sp_inside_braces = ignore # ignore/add/remove/force 423 | 424 | # Add or remove space inside '{}' 425 | sp_inside_braces_empty = add # ignore/add/remove/force 426 | 427 | # Add or remove space between return type and function name 428 | # A minimum of 1 is forced except for pointer return types. 429 | sp_type_func = ignore # ignore/add/remove/force 430 | 431 | # Add or remove space between function name and '(' on function declaration 432 | sp_func_proto_paren = add # ignore/add/remove/force 433 | 434 | # Add or remove space between function name and '(' on function definition 435 | sp_func_def_paren = add # ignore/add/remove/force 436 | 437 | # Add or remove space inside empty function '()' 438 | sp_inside_fparens = remove # ignore/add/remove/force 439 | 440 | # Add or remove space inside function '(' and ')' 441 | sp_inside_fparen = remove # ignore/add/remove/force 442 | 443 | # Add or remove space between ']' and '(' when part of a function call. 444 | sp_square_fparen = ignore # ignore/add/remove/force 445 | 446 | # Add or remove space between ')' and '{' of function 447 | sp_fparen_brace = add # ignore/add/remove/force 448 | 449 | # Add or remove space between function name and '(' on function calls 450 | sp_func_call_paren = add # ignore/add/remove/force 451 | 452 | # Add or remove space between function name and '()' on function calls without parameters. 453 | # If set to 'ignore' (the default), sp_func_call_paren is used. 454 | sp_func_call_paren_empty = ignore # ignore/add/remove/force 455 | 456 | # Add or remove space between the user function name and '(' on function calls 457 | # You need to set a keyword to be a user function, like this: 'set func_call_user _' in the config file. 458 | sp_func_call_user_paren = ignore # ignore/add/remove/force 459 | 460 | # Add or remove space between a constructor/destructor and the open paren 461 | sp_func_class_paren = ignore # ignore/add/remove/force 462 | 463 | # Add or remove space between 'return' and '(' 464 | sp_return_paren = add # ignore/add/remove/force 465 | 466 | # Add or remove space between '__attribute__' and '(' 467 | sp_attribute_paren = ignore # ignore/add/remove/force 468 | 469 | # Add or remove space between 'defined' and '(' in '#if defined (FOO)' 470 | sp_defined_paren = ignore # ignore/add/remove/force 471 | 472 | # Add or remove space between 'throw' and '(' in 'throw (something)' 473 | sp_throw_paren = ignore # ignore/add/remove/force 474 | 475 | # Add or remove space between 'catch' and '(' in 'catch (something) { }' 476 | # If set to ignore, sp_before_sparen is used. 477 | sp_catch_paren = ignore # ignore/add/remove/force 478 | 479 | # Add or remove space between 'version' and '(' in 'version (something) { }' (D language) 480 | # If set to ignore, sp_before_sparen is used. 481 | sp_version_paren = ignore # ignore/add/remove/force 482 | 483 | # Add or remove space between 'scope' and '(' in 'scope (something) { }' (D language) 484 | # If set to ignore, sp_before_sparen is used. 485 | sp_scope_paren = ignore # ignore/add/remove/force 486 | 487 | # Add or remove space between macro and value 488 | sp_macro = ignore # ignore/add/remove/force 489 | 490 | # Add or remove space between macro function ')' and value 491 | sp_macro_func = add # ignore/add/remove/force 492 | 493 | # Add or remove space between 'else' and '{' if on the same line 494 | sp_else_brace = add # ignore/add/remove/force 495 | 496 | # Add or remove space between '}' and 'else' if on the same line 497 | sp_brace_else = add # ignore/add/remove/force 498 | 499 | # Add or remove space between '}' and the name of a typedef on the same line 500 | sp_brace_typedef = add # ignore/add/remove/force 501 | 502 | # Add or remove space between 'catch' and '{' if on the same line 503 | sp_catch_brace = add # ignore/add/remove/force 504 | 505 | # Add or remove space between '}' and 'catch' if on the same line 506 | sp_brace_catch = add # ignore/add/remove/force 507 | 508 | # Add or remove space between 'finally' and '{' if on the same line 509 | sp_finally_brace = add # ignore/add/remove/force 510 | 511 | # Add or remove space between '}' and 'finally' if on the same line 512 | sp_brace_finally = add # ignore/add/remove/force 513 | 514 | # Add or remove space between 'try' and '{' if on the same line 515 | sp_try_brace = add # ignore/add/remove/force 516 | 517 | # Add or remove space between get/set and '{' if on the same line 518 | sp_getset_brace = add # ignore/add/remove/force 519 | 520 | # Add or remove space before the '::' operator 521 | sp_before_dc = ignore # ignore/add/remove/force 522 | 523 | # Add or remove space after the '::' operator 524 | sp_after_dc = ignore # ignore/add/remove/force 525 | 526 | # Add or remove around the D named array initializer ':' operator 527 | sp_d_array_colon = ignore # ignore/add/remove/force 528 | 529 | # Add or remove space after the '!' (not) operator. Default=Remove 530 | sp_not = remove # ignore/add/remove/force 531 | 532 | # Add or remove space after the '~' (invert) operator. Default=Remove 533 | sp_inv = remove # ignore/add/remove/force 534 | 535 | # Add or remove space after the '&' (address-of) operator. Default=Remove 536 | # This does not affect the spacing after a '&' that is part of a type. 537 | sp_addr = remove # ignore/add/remove/force 538 | 539 | # Add or remove space around the '.' or '->' operators. Default=Remove 540 | sp_member = remove # ignore/add/remove/force 541 | 542 | # Add or remove space after the '*' (dereference) operator. Default=Remove 543 | # This does not affect the spacing after a '*' that is part of a type. 544 | sp_deref = remove # ignore/add/remove/force 545 | 546 | # Add or remove space after '+' or '-', as in 'x = -5' or 'y = +7'. Default=Remove 547 | sp_sign = remove # ignore/add/remove/force 548 | 549 | # Add or remove space before or after '++' and '--', as in '(--x)' or 'y++;'. Default=Remove 550 | sp_incdec = remove # ignore/add/remove/force 551 | 552 | # Add or remove space before a backslash-newline at the end of a line. Default=Add 553 | sp_before_nl_cont = add # ignore/add/remove/force 554 | 555 | # Add or remove space after the scope '+' or '-', as in '-(void) foo;' or '+(int) bar;' 556 | sp_after_oc_scope = ignore # ignore/add/remove/force 557 | 558 | # Add or remove space after the colon in message specs 559 | # '-(int) f:(int) x;' vs '-(int) f: (int) x;' 560 | sp_after_oc_colon = ignore # ignore/add/remove/force 561 | 562 | # Add or remove space before the colon in message specs 563 | # '-(int) f: (int) x;' vs '-(int) f : (int) x;' 564 | sp_before_oc_colon = ignore # ignore/add/remove/force 565 | 566 | # Add or remove space after the colon in message specs 567 | # '[object setValue:1];' vs '[object setValue: 1];' 568 | sp_after_send_oc_colon = ignore # ignore/add/remove/force 569 | 570 | # Add or remove space before the colon in message specs 571 | # '[object setValue:1];' vs '[object setValue :1];' 572 | sp_before_send_oc_colon = ignore # ignore/add/remove/force 573 | 574 | # Add or remove space after the (type) in message specs 575 | # '-(int)f: (int) x;' vs '-(int)f: (int)x;' 576 | sp_after_oc_type = ignore # ignore/add/remove/force 577 | 578 | # Add or remove space after the first (type) in message specs 579 | # '-(int) f:(int)x;' vs '-(int)f:(int)x;' 580 | sp_after_oc_return_type = ignore # ignore/add/remove/force 581 | 582 | # Add or remove space between '@selector' and '(' 583 | # '@selector(msgName)' vs '@selector (msgName)' 584 | # Also applies to @protocol() constructs 585 | sp_after_oc_at_sel = ignore # ignore/add/remove/force 586 | 587 | # Add or remove space between '@selector(x)' and the following word 588 | # '@selector(foo) a:' vs '@selector(foo)a:' 589 | sp_after_oc_at_sel_parens = ignore # ignore/add/remove/force 590 | 591 | # Add or remove space inside '@selector' parens 592 | # '@selector(foo)' vs '@selector( foo )' 593 | # Also applies to @protocol() constructs 594 | sp_inside_oc_at_sel_parens = ignore # ignore/add/remove/force 595 | 596 | # Add or remove space before a block pointer caret 597 | # '^int (int arg){...}' vs. ' ^int (int arg){...}' 598 | sp_before_oc_block_caret = ignore # ignore/add/remove/force 599 | 600 | # Add or remove space after a block pointer caret 601 | # '^int (int arg){...}' vs. '^ int (int arg){...}' 602 | sp_after_oc_block_caret = ignore # ignore/add/remove/force 603 | 604 | # Add or remove space around the ':' in 'b ? t : f' 605 | sp_cond_colon = add # ignore/add/remove/force 606 | 607 | # Add or remove space around the '?' in 'b ? t : f' 608 | sp_cond_question = add # ignore/add/remove/force 609 | 610 | # Fix the spacing between 'case' and the label. Only 'ignore' and 'force' make sense here. 611 | sp_case_label = ignore # ignore/add/remove/force 612 | 613 | # Control the space around the D '..' operator. 614 | sp_range = ignore # ignore/add/remove/force 615 | 616 | # Control the space after the opening of a C++ comment '// A' vs '//A' 617 | sp_cmt_cpp_start = ignore # ignore/add/remove/force 618 | 619 | # Controls the spaces between #else or #endif and a trailing comment 620 | sp_endif_cmt = ignore # ignore/add/remove/force 621 | 622 | # Controls the spaces after 'new', 'delete', and 'delete[]' 623 | sp_after_new = ignore # ignore/add/remove/force 624 | 625 | # Controls the spaces before a trailing or embedded comment 626 | sp_before_tr_emb_cmt = ignore # ignore/add/remove/force 627 | 628 | # Number of spaces before a trailing or embedded comment 629 | sp_num_before_tr_emb_cmt = 0 # number 630 | 631 | # 632 | # Code alignment (not left column spaces/tabs) 633 | # 634 | 635 | # Whether to keep non-indenting tabs 636 | align_keep_tabs = false # false/true 637 | 638 | # Whether to use tabs for aligning 639 | align_with_tabs = false # false/true 640 | 641 | # Whether to bump out to the next tab when aligning 642 | align_on_tabstop = false # false/true 643 | 644 | # Whether to left-align numbers 645 | align_number_left = false # false/true 646 | 647 | # Align variable definitions in prototypes and functions 648 | align_func_params = true # false/true 649 | 650 | # Align parameters in single-line functions that have the same name. 651 | # The function names must already be aligned with each other. 652 | align_same_func_call_params = true # false/true 653 | 654 | # The span for aligning variable definitions (0=don't align) 655 | align_var_def_span = 0 # number 656 | 657 | # How to align the star in variable definitions. 658 | # 0=Part of the type 'void * foo;' 659 | # 1=Part of the variable 'void *foo;' 660 | # 2=Dangling 'void *foo;' 661 | align_var_def_star_style = 0 # number 662 | 663 | # How to align the '&' in variable definitions. 664 | # 0=Part of the type 665 | # 1=Part of the variable 666 | # 2=Dangling 667 | align_var_def_amp_style = 0 # number 668 | 669 | # The threshold for aligning variable definitions (0=no limit) 670 | align_var_def_thresh = 0 # number 671 | 672 | # The gap for aligning variable definitions 673 | align_var_def_gap = 0 # number 674 | 675 | # Whether to align the colon in struct bit fields 676 | align_var_def_colon = false # false/true 677 | 678 | # Whether to align any attribute after the variable name 679 | align_var_def_attribute = false # false/true 680 | 681 | # Whether to align inline struct/enum/union variable definitions 682 | align_var_def_inline = false # false/true 683 | 684 | # The span for aligning on '=' in assignments (0=don't align) 685 | align_assign_span = 0 # number 686 | 687 | # The threshold for aligning on '=' in assignments (0=no limit) 688 | align_assign_thresh = 0 # number 689 | 690 | # The span for aligning on '=' in enums (0=don't align) 691 | align_enum_equ_span = 0 # number 692 | 693 | # The threshold for aligning on '=' in enums (0=no limit) 694 | align_enum_equ_thresh = 0 # number 695 | 696 | # The span for aligning struct/union (0=don't align) 697 | align_var_struct_span = 0 # number 698 | 699 | # The threshold for aligning struct/union member definitions (0=no limit) 700 | align_var_struct_thresh = 0 # number 701 | 702 | # The gap for aligning struct/union member definitions 703 | align_var_struct_gap = 0 # number 704 | 705 | # The span for aligning struct initializer values (0=don't align) 706 | align_struct_init_span = 0 # number 707 | 708 | # The minimum space between the type and the synonym of a typedef 709 | align_typedef_gap = 0 # number 710 | 711 | # The span for aligning single-line typedefs (0=don't align) 712 | align_typedef_span = 0 # number 713 | 714 | # How to align typedef'd functions with other typedefs 715 | # 0: Don't mix them at all 716 | # 1: align the open paren with the types 717 | # 2: align the function type name with the other type names 718 | align_typedef_func = 0 # number 719 | 720 | # Controls the positioning of the '*' in typedefs. Just try it. 721 | # 0: Align on typedef type, ignore '*' 722 | # 1: The '*' is part of type name: typedef int *pint; 723 | # 2: The '*' is part of the type, but dangling: typedef int *pint; 724 | align_typedef_star_style = 0 # number 725 | 726 | # Controls the positioning of the '&' in typedefs. Just try it. 727 | # 0: Align on typedef type, ignore '&' 728 | # 1: The '&' is part of type name: typedef int &pint; 729 | # 2: The '&' is part of the type, but dangling: typedef int &pint; 730 | align_typedef_amp_style = 0 # number 731 | 732 | # The span for aligning comments that end lines (0=don't align) 733 | align_right_cmt_span = 0 # number 734 | 735 | # If aligning comments, mix with comments after '}' and #endif with less than 3 spaces before the comment 736 | align_right_cmt_mix = false # false/true 737 | 738 | # If a trailing comment is more than this number of columns away from the text it follows, 739 | # it will qualify for being aligned. This has to be > 0 to do anything. 740 | align_right_cmt_gap = 0 # number 741 | 742 | # Align trailing comment at or beyond column N; 'pulls in' comments as a bonus side effect (0=ignore) 743 | align_right_cmt_at_col = 0 # number 744 | 745 | # The span for aligning function prototypes (0=don't align) 746 | align_func_proto_span = 0 # number 747 | 748 | # Minimum gap between the return type and the function name. 749 | align_func_proto_gap = 0 # number 750 | 751 | # Align function protos on the 'operator' keyword instead of what follows 752 | align_on_operator = false # false/true 753 | 754 | # Whether to mix aligning prototype and variable declarations. 755 | # If true, align_var_def_XXX options are used instead of align_func_proto_XXX options. 756 | align_mix_var_proto = false # false/true 757 | 758 | # Align single-line functions with function prototypes, uses align_func_proto_span 759 | align_single_line_func = false # false/true 760 | 761 | # Aligning the open brace of single-line functions. 762 | # Requires align_single_line_func=true, uses align_func_proto_span 763 | align_single_line_brace = false # false/true 764 | 765 | # Gap for align_single_line_brace. 766 | align_single_line_brace_gap = 0 # number 767 | 768 | # The span for aligning ObjC msg spec (0=don't align) 769 | align_oc_msg_spec_span = 0 # number 770 | 771 | # Whether to align macros wrapped with a backslash and a newline. 772 | # This will not work right if the macro contains a multi-line comment. 773 | align_nl_cont = false # false/true 774 | 775 | # The minimum space between label and value of a preprocessor define 776 | align_pp_define_gap = 0 # number 777 | 778 | # The span for aligning on '#define' bodies (0=don't align) 779 | align_pp_define_span = 0 # number 780 | 781 | # Align lines that start with '<<' with previous '<<'. Default=true 782 | align_left_shift = true # false/true 783 | 784 | # Span for aligning parameters in an Obj-C message call on the ':' (0=don't align) 785 | align_oc_msg_colon_span = 0 # number 786 | 787 | # Aligning parameters in an Obj-C '+' or '-' declaration on the ':' 788 | align_oc_decl_colon = false # false/true 789 | 790 | # 791 | # Newline adding and removing options 792 | # 793 | 794 | # Whether to collapse empty blocks between '{' and '}' 795 | nl_collapse_empty_body = false # false/true 796 | 797 | # Don't split one-line braced assignments - 'foo_t f = { 1, 2 };' 798 | nl_assign_leave_one_liners = false # false/true 799 | 800 | # Don't split one-line braced statements inside a class xx { } body 801 | nl_class_leave_one_liners = false # false/true 802 | 803 | # Don't split one-line enums: 'enum foo { BAR = 15 };' 804 | nl_enum_leave_one_liners = false # false/true 805 | 806 | # Don't split one-line get or set functions 807 | nl_getset_leave_one_liners = false # false/true 808 | 809 | # Don't split one-line function definitions - 'int foo() { return 0; }' 810 | nl_func_leave_one_liners = false # false/true 811 | 812 | # Don't split one-line if/else statements - 'if(a) b++;' 813 | nl_if_leave_one_liners = false # false/true 814 | 815 | # Add or remove newlines at the start of the file 816 | nl_start_of_file = ignore # ignore/add/remove/force 817 | 818 | # The number of newlines at the start of the file (only used if nl_start_of_file is 'add' or 'force' 819 | nl_start_of_file_min = 0 # number 820 | 821 | # Add or remove newline at the end of the file 822 | nl_end_of_file = ignore # ignore/add/remove/force 823 | 824 | # The number of newlines at the end of the file (only used if nl_end_of_file is 'add' or 'force') 825 | nl_end_of_file_min = 0 # number 826 | 827 | # Add or remove newline between '=' and '{' 828 | nl_assign_brace = remove # ignore/add/remove/force 829 | 830 | # Add or remove newline between '=' and '[' (D only) 831 | nl_assign_square = ignore # ignore/add/remove/force 832 | 833 | # Add or remove newline after '= [' (D only). Will also affect the newline before the ']' 834 | nl_after_square_assign = ignore # ignore/add/remove/force 835 | 836 | # The number of blank lines after a block of variable definitions at the top of a function body. 837 | # 0=no change (default) 838 | nl_func_var_def_blk = 0 # number 839 | 840 | # Add or remove newline between a function call's ')' and '{', as in: 841 | # list_for_each(item, &list) { } 842 | nl_fcall_brace = ignore # ignore/add/remove/force 843 | 844 | # Add or remove newline between 'enum' and '{' 845 | nl_enum_brace = remove # ignore/add/remove/force 846 | 847 | # Add or remove newline between 'struct and '{' 848 | nl_struct_brace = remove # ignore/add/remove/force 849 | 850 | # Add or remove newline between 'union' and '{' 851 | nl_union_brace = remove # ignore/add/remove/force 852 | 853 | # Add or remove newline between 'if' and '{' 854 | nl_if_brace = remove # ignore/add/remove/force 855 | 856 | # Add or remove newline between '}' and 'else' 857 | nl_brace_else = remove # ignore/add/remove/force 858 | 859 | # Add or remove newline between 'else if' and '{' 860 | # If set to ignore, nl_if_brace is used instead 861 | nl_elseif_brace = remove # ignore/add/remove/force 862 | 863 | # Add or remove newline between 'else' and '{' 864 | nl_else_brace = remove # ignore/add/remove/force 865 | 866 | # Add or remove newline between 'else' and 'if' 867 | nl_else_if = ignore # ignore/add/remove/force 868 | 869 | # Add or remove newline between '}' and 'finally' 870 | nl_brace_finally = remove # ignore/add/remove/force 871 | 872 | # Add or remove newline between 'finally' and '{' 873 | nl_finally_brace = remove # ignore/add/remove/force 874 | 875 | # Add or remove newline between 'try' and '{' 876 | nl_try_brace = remove # ignore/add/remove/force 877 | 878 | # Add or remove newline between get/set and '{' 879 | nl_getset_brace = remove # ignore/add/remove/force 880 | 881 | # Add or remove newline between 'for' and '{' 882 | nl_for_brace = remove # ignore/add/remove/force 883 | 884 | # Add or remove newline between 'catch' and '{' 885 | nl_catch_brace = ignore # ignore/add/remove/force 886 | 887 | # Add or remove newline between '}' and 'catch' 888 | nl_brace_catch = remove # ignore/add/remove/force 889 | 890 | # Add or remove newline between 'while' and '{' 891 | nl_while_brace = remove # ignore/add/remove/force 892 | 893 | # Add or remove newline between 'using' and '{' 894 | nl_using_brace = remove # ignore/add/remove/force 895 | 896 | # Add or remove newline between two open or close braces. 897 | # Due to general newline/brace handling, REMOVE may not work. 898 | nl_brace_brace = ignore # ignore/add/remove/force 899 | 900 | # Add or remove newline between 'do' and '{' 901 | nl_do_brace = ignore # ignore/add/remove/force 902 | 903 | # Add or remove newline between '}' and 'while' of 'do' statement 904 | nl_brace_while = remove # ignore/add/remove/force 905 | 906 | # Add or remove newline between 'switch' and '{' 907 | nl_switch_brace = remove # ignore/add/remove/force 908 | 909 | # Add a newline between ')' and '{' if the ')' is on a different line than the if/for/etc. 910 | # Overrides nl_for_brace, nl_if_brace, nl_switch_brace, nl_while_switch, and nl_catch_brace. 911 | nl_multi_line_cond = false # false/true 912 | 913 | # Force a newline in a define after the macro name for multi-line defines. 914 | nl_multi_line_define = false # false/true 915 | 916 | # Whether to put a newline before 'case' statement 917 | nl_before_case = false # false/true 918 | 919 | # Add or remove newline between ')' and 'throw' 920 | nl_before_throw = ignore # ignore/add/remove/force 921 | 922 | # Whether to put a newline after 'case' statement 923 | nl_after_case = false # false/true 924 | 925 | # Add or remove a newline between a case ':' and '{'. Overrides nl_after_case. 926 | nl_case_colon_brace = ignore # ignore/add/remove/force 927 | 928 | # Newline between namespace and { 929 | nl_namespace_brace = remove # ignore/add/remove/force 930 | 931 | # Add or remove newline between 'template<>' and whatever follows. 932 | nl_template_class = ignore # ignore/add/remove/force 933 | 934 | # Add or remove newline between 'class' and '{' 935 | nl_class_brace = remove # ignore/add/remove/force 936 | 937 | # Add or remove newline after each ',' in the constructor member initialization 938 | nl_class_init_args = ignore # ignore/add/remove/force 939 | 940 | # Add or remove newline between return type and function name in a function definition 941 | nl_func_type_name = ignore # ignore/add/remove/force 942 | 943 | # Add or remove newline between return type and function name inside a class {} 944 | # Uses nl_func_type_name or nl_func_proto_type_name if set to ignore. 945 | nl_func_type_name_class = ignore # ignore/add/remove/force 946 | 947 | # Add or remove newline between function scope and name in a definition 948 | # Controls the newline after '::' in 'void A::f() { }' 949 | nl_func_scope_name = ignore # ignore/add/remove/force 950 | 951 | # Add or remove newline between return type and function name in a prototype 952 | nl_func_proto_type_name = ignore # ignore/add/remove/force 953 | 954 | # Add or remove newline between a function name and the opening '(' 955 | nl_func_paren = remove # ignore/add/remove/force 956 | 957 | # Add or remove newline between a function name and the opening '(' in the definition 958 | nl_func_def_paren = remove # ignore/add/remove/force 959 | 960 | # Add or remove newline after '(' in a function declaration 961 | nl_func_decl_start = ignore # ignore/add/remove/force 962 | 963 | # Add or remove newline after '(' in a function definition 964 | nl_func_def_start = ignore # ignore/add/remove/force 965 | 966 | # Overrides nl_func_decl_start when there is only one parameter. 967 | nl_func_decl_start_single = ignore # ignore/add/remove/force 968 | 969 | # Overrides nl_func_def_start when there is only one parameter. 970 | nl_func_def_start_single = ignore # ignore/add/remove/force 971 | 972 | # Add or remove newline after each ',' in a function declaration 973 | nl_func_decl_args = ignore # ignore/add/remove/force 974 | 975 | # Add or remove newline after each ',' in a function definition 976 | nl_func_def_args = ignore # ignore/add/remove/force 977 | 978 | # Add or remove newline before the ')' in a function declaration 979 | nl_func_decl_end = ignore # ignore/add/remove/force 980 | 981 | # Add or remove newline before the ')' in a function definition 982 | nl_func_def_end = ignore # ignore/add/remove/force 983 | 984 | # Overrides nl_func_decl_end when there is only one parameter. 985 | nl_func_decl_end_single = ignore # ignore/add/remove/force 986 | 987 | # Overrides nl_func_def_end when there is only one parameter. 988 | nl_func_def_end_single = ignore # ignore/add/remove/force 989 | 990 | # Add or remove newline between '()' in a function declaration. 991 | nl_func_decl_empty = ignore # ignore/add/remove/force 992 | 993 | # Add or remove newline between '()' in a function definition. 994 | nl_func_def_empty = ignore # ignore/add/remove/force 995 | 996 | # Add or remove newline between function signature and '{' 997 | nl_fdef_brace = remove # ignore/add/remove/force 998 | 999 | # Whether to put a newline after 'return' statement 1000 | nl_after_return = false # false/true 1001 | 1002 | # Add or remove a newline between the return keyword and return expression. 1003 | nl_return_expr = ignore # ignore/add/remove/force 1004 | 1005 | # Whether to put a newline after semicolons, except in 'for' statements 1006 | nl_after_semicolon = false # false/true 1007 | 1008 | # Whether to put a newline after brace open. 1009 | # This also adds a newline before the matching brace close. 1010 | nl_after_brace_open = false # false/true 1011 | 1012 | # If nl_after_brace_open and nl_after_brace_open_cmt are true, a newline is 1013 | # placed between the open brace and a trailing single-line comment. 1014 | nl_after_brace_open_cmt = false # false/true 1015 | 1016 | # Whether to put a newline after a virtual brace open with a non-empty body. 1017 | # These occur in un-braced if/while/do/for statement bodies. 1018 | nl_after_vbrace_open = false # false/true 1019 | 1020 | # Whether to put a newline after a virtual brace open with an empty body. 1021 | # These occur in un-braced if/while/do/for statement bodies. 1022 | nl_after_vbrace_open_empty = false # false/true 1023 | 1024 | # Whether to put a newline after a brace close. 1025 | # Does not apply if followed by a necessary ';'. 1026 | nl_after_brace_close = false # false/true 1027 | 1028 | # Whether to put a newline after a virtual brace close. 1029 | # Would add a newline before return in: 'if (foo) a++; return;' 1030 | nl_after_vbrace_close = false # false/true 1031 | 1032 | # Whether to alter newlines in '#define' macros 1033 | nl_define_macro = false # false/true 1034 | 1035 | # Whether to not put blanks after '#ifxx', '#elxx', or before '#endif' 1036 | nl_squeeze_ifdef = false # false/true 1037 | 1038 | # Add or remove blank line before 'if' 1039 | nl_before_if = ignore # ignore/add/remove/force 1040 | 1041 | # Add or remove blank line after 'if' statement 1042 | nl_after_if = ignore # ignore/add/remove/force 1043 | 1044 | # Add or remove blank line before 'for' 1045 | nl_before_for = ignore # ignore/add/remove/force 1046 | 1047 | # Add or remove blank line after 'for' statement 1048 | nl_after_for = ignore # ignore/add/remove/force 1049 | 1050 | # Add or remove blank line before 'while' 1051 | nl_before_while = ignore # ignore/add/remove/force 1052 | 1053 | # Add or remove blank line after 'while' statement 1054 | nl_after_while = ignore # ignore/add/remove/force 1055 | 1056 | # Add or remove blank line before 'switch' 1057 | nl_before_switch = ignore # ignore/add/remove/force 1058 | 1059 | # Add or remove blank line after 'switch' statement 1060 | nl_after_switch = ignore # ignore/add/remove/force 1061 | 1062 | # Add or remove blank line before 'do' 1063 | nl_before_do = ignore # ignore/add/remove/force 1064 | 1065 | # Add or remove blank line after 'do/while' statement 1066 | nl_after_do = ignore # ignore/add/remove/force 1067 | 1068 | # Whether to double-space commented-entries in struct/enum 1069 | nl_ds_struct_enum_cmt = false # false/true 1070 | 1071 | # Whether to double-space before the close brace of a struct/union/enum 1072 | # (lower priority than 'eat_blanks_before_close_brace') 1073 | nl_ds_struct_enum_close_brace = false # false/true 1074 | 1075 | # Add or remove a newline around a class colon. 1076 | # Related to pos_class_colon, nl_class_init_args, and pos_comma. 1077 | nl_class_colon = ignore # ignore/add/remove/force 1078 | 1079 | # Change simple unbraced if statements into a one-liner 1080 | # 'if(b)\n i++;' => 'if(b) i++;' 1081 | nl_create_if_one_liner = false # false/true 1082 | 1083 | # Change simple unbraced for statements into a one-liner 1084 | # 'for (i=0;i<5;i++)\n foo(i);' => 'for (i=0;i<5;i++) foo(i);' 1085 | nl_create_for_one_liner = false # false/true 1086 | 1087 | # Change simple unbraced while statements into a one-liner 1088 | # 'while (i<5)\n foo(i++);' => 'while (i<5) foo(i++);' 1089 | nl_create_while_one_liner = false # false/true 1090 | 1091 | # 1092 | # Positioning options 1093 | # 1094 | 1095 | # The position of arithmetic operators in wrapped expressions 1096 | pos_arith = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force 1097 | 1098 | # The position of assignment in wrapped expressions. 1099 | # Do not affect '=' followed by '{' 1100 | pos_assign = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force 1101 | 1102 | # The position of boolean operators in wrapped expressions 1103 | pos_bool = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force 1104 | 1105 | # The position of comparison operators in wrapped expressions 1106 | pos_compare = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force 1107 | 1108 | # The position of conditional (b ? t : f) operators in wrapped expressions 1109 | pos_conditional = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force 1110 | 1111 | # The position of the comma in wrapped expressions 1112 | pos_comma = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force 1113 | 1114 | # The position of the comma in the constructor initialization list 1115 | pos_class_comma = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force 1116 | 1117 | # The position of colons between constructor and member initialization 1118 | pos_class_colon = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force 1119 | 1120 | # 1121 | # Line Splitting options 1122 | # 1123 | 1124 | # Try to limit code width to N number of columns 1125 | code_width = 0 # number 1126 | 1127 | # Whether to fully split long 'for' statements at semi-colons 1128 | ls_for_split_full = false # false/true 1129 | 1130 | # Whether to fully split long function protos/calls at commas 1131 | ls_func_split_full = false # false/true 1132 | 1133 | # 1134 | # Blank line options 1135 | # 1136 | 1137 | # The maximum consecutive newlines 1138 | nl_max = 0 # number 1139 | 1140 | # The number of newlines after a function prototype, if followed by another function prototype 1141 | nl_after_func_proto = 0 # number 1142 | 1143 | # The number of newlines after a function prototype, if not followed by another function prototype 1144 | nl_after_func_proto_group = 0 # number 1145 | 1146 | # The number of newlines after '}' of a multi-line function body 1147 | nl_after_func_body = 0 # number 1148 | 1149 | # The number of newlines after '}' of a multi-line function body in a class declaration 1150 | nl_after_func_body_class = 0 # number 1151 | 1152 | # The number of newlines after '}' of a single line function body 1153 | nl_after_func_body_one_liner = 0 # number 1154 | 1155 | # The minimum number of newlines before a multi-line comment. 1156 | # Doesn't apply if after a brace open or another multi-line comment. 1157 | nl_before_block_comment = 0 # number 1158 | 1159 | # The minimum number of newlines before a single-line C comment. 1160 | # Doesn't apply if after a brace open or other single-line C comments. 1161 | nl_before_c_comment = 0 # number 1162 | 1163 | # The minimum number of newlines before a CPP comment. 1164 | # Doesn't apply if after a brace open or other CPP comments. 1165 | nl_before_cpp_comment = 0 # number 1166 | 1167 | # Whether to force a newline after a multi-line comment. 1168 | nl_after_multiline_comment = false # false/true 1169 | 1170 | # The number of newlines after '}' or ';' of a struct/enum/union definition 1171 | nl_after_struct = 0 # number 1172 | 1173 | # The number of newlines after '}' or ';' of a class definition 1174 | nl_after_class = 0 # number 1175 | 1176 | # The number of newlines before a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label. 1177 | # Will not change the newline count if after a brace open. 1178 | # 0 = No change. 1179 | nl_before_access_spec = 0 # number 1180 | 1181 | # The number of newlines after a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label. 1182 | # 0 = No change. 1183 | nl_after_access_spec = 0 # number 1184 | 1185 | # The number of newlines between a function def and the function comment. 1186 | # 0 = No change. 1187 | nl_comment_func_def = 0 # number 1188 | 1189 | # The number of newlines after a try-catch-finally block that isn't followed by a brace close. 1190 | # 0 = No change. 1191 | nl_after_try_catch_finally = 0 # number 1192 | 1193 | # The number of newlines before and after a property, indexer or event decl. 1194 | # 0 = No change. 1195 | nl_around_cs_property = 0 # number 1196 | 1197 | # The number of newlines between the get/set/add/remove handlers in C#. 1198 | # 0 = No change. 1199 | nl_between_get_set = 0 # number 1200 | 1201 | # Add or remove newline between C# property and the '{' 1202 | nl_property_brace = ignore # ignore/add/remove/force 1203 | 1204 | # Whether to remove blank lines after '{' 1205 | eat_blanks_after_open_brace = true # false/true 1206 | 1207 | # Whether to remove blank lines before '}' 1208 | eat_blanks_before_close_brace = true # false/true 1209 | 1210 | # 1211 | # Code modifying options (non-whitespace) 1212 | # 1213 | 1214 | # Add or remove braces on single-line 'do' statement 1215 | mod_full_brace_do = ignore # ignore/add/remove/force 1216 | 1217 | # Add or remove braces on single-line 'for' statement 1218 | mod_full_brace_for = ignore # ignore/add/remove/force 1219 | 1220 | # Add or remove braces on single-line function definitions. (Pawn) 1221 | mod_full_brace_function = ignore # ignore/add/remove/force 1222 | 1223 | # Add or remove braces on single-line 'if' statement. Will not remove the braces if they contain an 'else'. 1224 | mod_full_brace_if = ignore # ignore/add/remove/force 1225 | 1226 | # Make all if/elseif/else statements in a chain be braced or not. Overrides mod_full_brace_if. 1227 | # If any must be braced, they are all braced. If all can be unbraced, then the braces are removed. 1228 | mod_full_brace_if_chain = false # false/true 1229 | 1230 | # Don't remove braces around statements that span N newlines 1231 | mod_full_brace_nl = 0 # number 1232 | 1233 | # Add or remove braces on single-line 'while' statement 1234 | mod_full_brace_while = ignore # ignore/add/remove/force 1235 | 1236 | # Add or remove braces on single-line 'using ()' statement 1237 | mod_full_brace_using = ignore # ignore/add/remove/force 1238 | 1239 | # Add or remove unnecessary paren on 'return' statement 1240 | mod_paren_on_return = ignore # ignore/add/remove/force 1241 | 1242 | # Whether to change optional semicolons to real semicolons 1243 | mod_pawn_semicolon = false # false/true 1244 | 1245 | # Add parens on 'while' and 'if' statement around bools 1246 | mod_full_paren_if_bool = false # false/true 1247 | 1248 | # Whether to remove superfluous semicolons 1249 | mod_remove_extra_semicolon = false # false/true 1250 | 1251 | # If a function body exceeds the specified number of newlines and doesn't have a comment after 1252 | # the close brace, a comment will be added. 1253 | mod_add_long_function_closebrace_comment = 0 # number 1254 | 1255 | # If a switch body exceeds the specified number of newlines and doesn't have a comment after 1256 | # the close brace, a comment will be added. 1257 | mod_add_long_switch_closebrace_comment = 0 # number 1258 | 1259 | # If an #ifdef body exceeds the specified number of newlines and doesn't have a comment after 1260 | # the #endif, a comment will be added. 1261 | mod_add_long_ifdef_endif_comment = 0 # number 1262 | 1263 | # If an #ifdef or #else body exceeds the specified number of newlines and doesn't have a comment after 1264 | # the #else, a comment will be added. 1265 | mod_add_long_ifdef_else_comment = 0 # number 1266 | 1267 | # If TRUE, will sort consecutive single-line 'import' statements [Java, D] 1268 | mod_sort_import = false # false/true 1269 | 1270 | # If TRUE, will sort consecutive single-line 'using' statements [C#] 1271 | mod_sort_using = false # false/true 1272 | 1273 | # If TRUE, will sort consecutive single-line '#include' statements [C/C++] and '#import' statements [Obj-C] 1274 | # This is generally a bad idea, as it may break your code. 1275 | mod_sort_include = false # false/true 1276 | 1277 | # If TRUE, it will move a 'break' that appears after a fully braced 'case' before the close brace. 1278 | mod_move_case_break = false # false/true 1279 | 1280 | # Will add or remove the braces around a fully braced case statement. 1281 | # Will only remove the braces if there are no variable declarations in the block. 1282 | mod_case_brace = ignore # ignore/add/remove/force 1283 | 1284 | # If TRUE, it will remove a void 'return;' that appears as the last statement in a function. 1285 | mod_remove_empty_return = false # false/true 1286 | 1287 | # 1288 | # Comment modifications 1289 | # 1290 | 1291 | # Try to wrap comments at cmt_width columns 1292 | cmt_width = 0 # number 1293 | 1294 | # Set the comment reflow mode (default: 0) 1295 | # 0: no reflowing (apart from the line wrapping due to cmt_width) 1296 | # 1: no touching at all 1297 | # 2: full reflow 1298 | cmt_reflow_mode = 0 # number 1299 | 1300 | # If false, disable all multi-line comment changes, including cmt_width. keyword substitution, and leading chars. 1301 | # Default is true. 1302 | cmt_indent_multi = true # false/true 1303 | 1304 | # Whether to group c-comments that look like they are in a block 1305 | cmt_c_group = false # false/true 1306 | 1307 | # Whether to put an empty '/*' on the first line of the combined c-comment 1308 | cmt_c_nl_start = false # false/true 1309 | 1310 | # Whether to put a newline before the closing '*/' of the combined c-comment 1311 | cmt_c_nl_end = false # false/true 1312 | 1313 | # Whether to group cpp-comments that look like they are in a block 1314 | cmt_cpp_group = false # false/true 1315 | 1316 | # Whether to put an empty '/*' on the first line of the combined cpp-comment 1317 | cmt_cpp_nl_start = false # false/true 1318 | 1319 | # Whether to put a newline before the closing '*/' of the combined cpp-comment 1320 | cmt_cpp_nl_end = false # false/true 1321 | 1322 | # Whether to change cpp-comments into c-comments 1323 | cmt_cpp_to_c = false # false/true 1324 | 1325 | # Whether to put a star on subsequent comment lines 1326 | cmt_star_cont = false # false/true 1327 | 1328 | # The number of spaces to insert at the start of subsequent comment lines 1329 | cmt_sp_before_star_cont = 0 # number 1330 | 1331 | # The number of spaces to insert after the star on subsequent comment lines 1332 | cmt_sp_after_star_cont = 0 # number 1333 | 1334 | # For multi-line comments with a '*' lead, remove leading spaces if the first and last lines of 1335 | # the comment are the same length. Default=True 1336 | cmt_multi_check_last = true # false/true 1337 | 1338 | # The filename that contains text to insert at the head of a file if the file doesn't start with a C/C++ comment. 1339 | # Will substitute $(filename) with the current file's name. 1340 | cmt_insert_file_header = "" # string 1341 | 1342 | # The filename that contains text to insert at the end of a file if the file doesn't end with a C/C++ comment. 1343 | # Will substitute $(filename) with the current file's name. 1344 | cmt_insert_file_footer = "" # string 1345 | 1346 | # The filename that contains text to insert before a function implementation if the function isn't preceded with a C/C++ comment. 1347 | # Will substitute $(function) with the function name and $(javaparam) with the javadoc @param and @return stuff. 1348 | # Will also substitute $(fclass) with the class name: void CFoo::Bar() { ... } 1349 | cmt_insert_func_header = "" # string 1350 | 1351 | # The filename that contains text to insert before a class if the class isn't preceded with a C/C++ comment. 1352 | # Will substitute $(class) with the class name. 1353 | cmt_insert_class_header = "" # string 1354 | 1355 | # The filename that contains text to insert before a Obj-C message specification if the method isn't preceeded with a C/C++ comment. 1356 | # Will substitute $(message) with the function name and $(javaparam) with the javadoc @param and @return stuff. 1357 | cmt_insert_oc_msg_header = "" # string 1358 | 1359 | # If a preprocessor is encountered when stepping backwards from a function name, then 1360 | # this option decides whether the comment should be inserted. 1361 | # Affects cmt_insert_oc_msg_header, cmt_insert_func_header and cmt_insert_class_header. 1362 | cmt_insert_before_preproc = false # false/true 1363 | 1364 | # 1365 | # Preprocessor options 1366 | # 1367 | 1368 | # Control indent of preprocessors inside #if blocks at brace level 0 1369 | pp_indent = ignore # ignore/add/remove/force 1370 | 1371 | # Whether to indent #if/#else/#endif at the brace level (true) or from column 1 (false) 1372 | pp_indent_at_level = false # false/true 1373 | 1374 | # If pp_indent_at_level=false, specifies the number of columns to indent per level. Default=1. 1375 | pp_indent_count = 1 # number 1376 | 1377 | # Add or remove space after # based on pp_level of #if blocks 1378 | pp_space = ignore # ignore/add/remove/force 1379 | 1380 | # Sets the number of spaces added with pp_space 1381 | pp_space_count = 0 # number 1382 | 1383 | # The indent for #region and #endregion in C# and '#pragma region' in C/C++ 1384 | pp_indent_region = 0 # number 1385 | 1386 | # Whether to indent the code between #region and #endregion 1387 | pp_region_indent_code = false # false/true 1388 | 1389 | # If pp_indent_at_level=true, sets the indent for #if, #else, and #endif when not at file-level 1390 | pp_indent_if = 0 # number 1391 | 1392 | # Control whether to indent the code between #if, #else and #endif when not at file-level 1393 | pp_if_indent_code = false # false/true 1394 | 1395 | # Whether to indent '#define' at the brace level (true) or from column 1 (false) 1396 | pp_define_at_level = false # false/true 1397 | 1398 | # You can force a token to be a type with the 'type' option. 1399 | # Example: 1400 | # type myfoo1 myfoo2 1401 | # 1402 | # You can create custom macro-based indentation using macro-open, 1403 | # macro-else and macro-close. 1404 | # Example: 1405 | # macro-open BEGIN_TEMPLATE_MESSAGE_MAP 1406 | # macro-open BEGIN_MESSAGE_MAP 1407 | # macro-close END_MESSAGE_MAP 1408 | # 1409 | # You can assign any keyword to any type with the set option. 1410 | # set func_call_user _ N_ 1411 | # 1412 | # The full syntax description of all custom definition config entries 1413 | # is shown below: 1414 | # 1415 | # define custom tokens as: 1416 | # - embed whitespace in token using '' escape character, or 1417 | # put token in quotes 1418 | # - these: ' " and ` are recognized as quote delimiters 1419 | # 1420 | # type token1 token2 token3 ... 1421 | # ^ optionally specify multiple tokens on a single line 1422 | # define def_token output_token 1423 | # ^ output_token is optional, then NULL is assumed 1424 | # macro-open token 1425 | # macro-close token 1426 | # macro-else token 1427 | # set id token1 token2 ... 1428 | # ^ optionally specify multiple tokens on a single line 1429 | # ^ id is one of the names in token_enum.h sans the CT_ prefix, 1430 | # e.g. PP_PRAGMA 1431 | # 1432 | # all tokens are separated by any mix of ',' commas, '=' equal signs 1433 | # and whitespace (space, tab) 1434 | # 1435 | --------------------------------------------------------------------------------