├── .project └── screenshots │ ├── calculator1.png │ └── calculator2.png ├── .reuse └── dep5 ├── .tag ├── CMakeLists.txt ├── LICENSE.GPLv3 ├── README.md ├── data ├── CMakeLists.txt ├── icons │ ├── 1024x1024 │ │ └── apps │ │ │ └── io.liri.Calculator.png │ ├── 128x128 │ │ └── apps │ │ │ └── io.liri.Calculator.png │ ├── 16x16 │ │ └── apps │ │ │ └── io.liri.Calculator.png │ ├── 192x192 │ │ └── apps │ │ │ └── io.liri.Calculator.png │ ├── 2048x2048 │ │ └── apps │ │ │ └── io.liri.Calculator.png │ ├── 256x256 │ │ └── apps │ │ │ └── io.liri.Calculator.png │ ├── 32x32 │ │ └── apps │ │ │ └── io.liri.Calculator.png │ ├── 512x512 │ │ └── apps │ │ │ └── io.liri.Calculator.png │ └── 64x64 │ │ └── apps │ │ └── io.liri.Calculator.png ├── io.liri.Calculator.appdata.xml ├── io.liri.Calculator.appdata.xml.in ├── io.liri.Calculator.desktop └── io.liri.Calculator.desktop.in ├── dist └── flatpak │ └── io.liri.Calculator.json ├── snap └── snapcraft.yaml ├── src ├── CMakeLists.txt ├── filehandler.cpp ├── filehandler.h ├── icons │ ├── icon.png │ └── liri-calculator.icns ├── main.cpp └── qml │ ├── ButtonsPanel.qml │ ├── ButtonsView.qml │ ├── CalculationLine.qml │ ├── CalculationZone.qml │ ├── HistoryPanel.qml │ ├── Main.qml │ ├── NavButton.qml │ ├── Shortcuts.qml │ ├── Styles.qml │ └── math.js └── translations ├── data ├── desktop │ ├── ar.po │ ├── da.po │ ├── de.po │ ├── desktop.pot │ ├── fr.po │ ├── it.po │ ├── lt.po │ ├── nl.po │ ├── pl.po │ ├── pt_BR.po │ ├── ru.po │ ├── tr.po │ └── zh_CN.po └── metainfo │ ├── da.po │ ├── de.po │ ├── it.po │ ├── lt.po │ ├── metainfo.pot │ ├── pt_BR.po │ ├── ru.po │ ├── tr.po │ └── zh_CN.po ├── io.liri.Calculator_ar.desktop ├── io.liri.Calculator_da.desktop ├── io.liri.Calculator_fr.desktop ├── io.liri.Calculator_lt.desktop ├── io.liri.Calculator_nl.desktop ├── io.liri.Calculator_pl.desktop ├── io.liri.Calculator_pt_BR.desktop ├── io.liri.Calculator_ru.desktop ├── io.liri.Calculator_tr.desktop ├── io.liri.Calculator_zh_CN.desktop ├── liri-calculator.ts ├── liri-calculator_ar.ts ├── liri-calculator_da.ts ├── liri-calculator_de.ts ├── liri-calculator_fr.ts ├── liri-calculator_it.ts ├── liri-calculator_lt.ts ├── liri-calculator_nl.ts ├── liri-calculator_pl.ts ├── liri-calculator_pt_BR.ts ├── liri-calculator_ru.ts ├── liri-calculator_tr.ts └── liri-calculator_zh_CN.ts /.project/screenshots/calculator1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lirios/calculator/ddfe99e89bd4153102cb11796766df230b1458c9/.project/screenshots/calculator1.png -------------------------------------------------------------------------------- /.project/screenshots/calculator2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lirios/calculator/ddfe99e89bd4153102cb11796766df230b1458c9/.project/screenshots/calculator2.png -------------------------------------------------------------------------------- /.reuse/dep5: -------------------------------------------------------------------------------- 1 | Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ 2 | Upstream-Name: Calculator 3 | Source: https://github.com/lirios/calculator 4 | 5 | Files: translations/* 6 | Copyright: 2020 Liri Translators 7 | License: CC0-1.0 8 | -------------------------------------------------------------------------------- /.tag: -------------------------------------------------------------------------------- 1 | ddfe99e89bd4153102cb11796766df230b1458c9 2 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.19) 2 | 3 | project("Calculator" 4 | VERSION "1.3.0" 5 | DESCRIPTION "Calculator application" 6 | LANGUAGES CXX C 7 | ) 8 | 9 | ## Enable C++17: 10 | set(CMAKE_CXX_STANDARD 17) 11 | set(CMAKE_CXX_STANDARD_REQUIRED ON) 12 | 13 | ## Find Qt: 14 | find_package(Qt6 15 | REQUIRED COMPONENTS 16 | Core 17 | Core5Compat 18 | Gui 19 | Widgets 20 | Svg 21 | Qml 22 | Quick 23 | QuickControls2 24 | LinguistTools 25 | ) 26 | qt_standard_project_setup(REQUIRES 6.6) 27 | 28 | ## Add subdirectories: 29 | add_subdirectory(data) 30 | add_subdirectory(src) 31 | -------------------------------------------------------------------------------- /LICENSE.GPLv3: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | 676 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Liri Calculator 2 | =============== 3 | 4 | [![License](https://img.shields.io/badge/license-GPLv3.0-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.html) 5 | [![GitHub release](https://img.shields.io/github/release/lirios/calculator.svg)](https://github.com/lirios/calculator) 6 | [![GitHub issues](https://img.shields.io/github/issues/lirios/calculator.svg)](https://github.com/lirios/calculator/issues) 7 | [![Snap Status](https://build.snapcraft.io/badge/lirios/calculator.svg)](https://build.snapcraft.io/user/lirios/calculator) 8 | [![CI](https://github.com/lirios/calculator/workflows/CI/badge.svg?branch=develop&event=push)](https://github.com/lirios/calculator/actions?query=workflow%3ACI) 9 | 10 | A cross-platform material design calculator. 11 | 12 | ![Screenshot](https://raw.githubusercontent.com/lirios/calculator/develop/.project/screenshots/calculator1.png) 13 | 14 | ## Dependencies 15 | 16 | Qt >= 6.6 with at least the following modules is required: 17 | 18 | * [qtbase](http://code.qt.io/cgit/qt/qtbase.git) 19 | * [qtdeclarative](http://code.qt.io/cgit/qt/qtdeclarative.git) 20 | 21 | The following modules and their dependencies are required: 22 | 23 | * [cmake](https://gitlab.kitware.com/cmake/cmake) >= 3.19.0 24 | * [fluid](https://github.com/lirios/fluid.git) >= 2.0.0 25 | 26 | ## Installation 27 | 28 | ```sh 29 | mkdir build 30 | cd build 31 | cmake -DCMAKE_INSTALL_PREFIX=/path/to/prefix .. 32 | make 33 | make install # use sudo if necessary 34 | ``` 35 | 36 | Replace `/path/to/prefix` to your installation prefix. 37 | Default is `/usr/local`. 38 | 39 | ## Licensing 40 | 41 | Licensed under the terms of the GNU General Public License version 3 or, at your option, any later version. 42 | -------------------------------------------------------------------------------- /data/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | if(UNIX AND NOT APPLE AND NOT ANDROID) 2 | file(GLOB png_icons "${CMAKE_CURRENT_SOURCE_DIR}/icons/*/*/*.png") 3 | file(GLOB svg_icons "${CMAKE_CURRENT_SOURCE_DIR}/icons/*/*/*.svg") 4 | foreach(source_path IN LISTS png_icons svg_icons) 5 | string(REPLACE "${CMAKE_CURRENT_SOURCE_DIR}/icons/" "" icon_basename "${source_path}") 6 | get_filename_component(icon_directory "${icon_basename}" DIRECTORY) 7 | string(REPLACE "${icon_directory}/" "" icon_filename "${icon_basename}") 8 | string(REGEX REPLACE "\.(png|svg)" "" icon_filename "${icon_filename}") 9 | set(dest_path "${CMAKE_INSTALL_DATADIR}/icons/hicolor/${icon_directory}/") 10 | install(FILES "${source_path}" DESTINATION "${dest_path}") 11 | endforeach() 12 | endif() 13 | 14 | install(FILES io.liri.Calculator.appdata.xml DESTINATION "${CMAKE_INSTALL_DATADIR}/appdata") 15 | install(FILES io.liri.Calculator.desktop DESTINATION "${CMAKE_INSTALL_DATADIR}/applications") 16 | -------------------------------------------------------------------------------- /data/icons/1024x1024/apps/io.liri.Calculator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lirios/calculator/ddfe99e89bd4153102cb11796766df230b1458c9/data/icons/1024x1024/apps/io.liri.Calculator.png -------------------------------------------------------------------------------- /data/icons/128x128/apps/io.liri.Calculator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lirios/calculator/ddfe99e89bd4153102cb11796766df230b1458c9/data/icons/128x128/apps/io.liri.Calculator.png -------------------------------------------------------------------------------- /data/icons/16x16/apps/io.liri.Calculator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lirios/calculator/ddfe99e89bd4153102cb11796766df230b1458c9/data/icons/16x16/apps/io.liri.Calculator.png -------------------------------------------------------------------------------- /data/icons/192x192/apps/io.liri.Calculator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lirios/calculator/ddfe99e89bd4153102cb11796766df230b1458c9/data/icons/192x192/apps/io.liri.Calculator.png -------------------------------------------------------------------------------- /data/icons/2048x2048/apps/io.liri.Calculator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lirios/calculator/ddfe99e89bd4153102cb11796766df230b1458c9/data/icons/2048x2048/apps/io.liri.Calculator.png -------------------------------------------------------------------------------- /data/icons/256x256/apps/io.liri.Calculator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lirios/calculator/ddfe99e89bd4153102cb11796766df230b1458c9/data/icons/256x256/apps/io.liri.Calculator.png -------------------------------------------------------------------------------- /data/icons/32x32/apps/io.liri.Calculator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lirios/calculator/ddfe99e89bd4153102cb11796766df230b1458c9/data/icons/32x32/apps/io.liri.Calculator.png -------------------------------------------------------------------------------- /data/icons/512x512/apps/io.liri.Calculator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lirios/calculator/ddfe99e89bd4153102cb11796766df230b1458c9/data/icons/512x512/apps/io.liri.Calculator.png -------------------------------------------------------------------------------- /data/icons/64x64/apps/io.liri.Calculator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lirios/calculator/ddfe99e89bd4153102cb11796766df230b1458c9/data/icons/64x64/apps/io.liri.Calculator.png -------------------------------------------------------------------------------- /data/io.liri.Calculator.appdata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | io.liri.Calculator 5 | Liri Calculator 6 | Liri Lommeregner 7 | Liri Taschenrechner 8 | Calcolatrice Liri 9 | Liri skaičiuotuvas 10 | Liri Calculator 11 | Калькулятор Liri 12 | Liri Hesap Makinesi 13 | Liri 计算器 14 | Perform arithmetic or scientific calculations 15 | Udfør aritmetiske eller videnskabelige udregninger 16 | Arithmetische oder wissenschaftliche Berechnungen durchführen 17 | Esegui calcoli aritimentici o scientifici 18 | Atlikti aritmetinius ar mokslinius skaičiavimus 19 | Execute cálculos aritméticos ou científicos 20 | Проведение арифметических и инженерных расчетов 21 | Aritmetik ve bilimsel hesaplamalar gerçekleştir 22 | 执行算术和科学计算 23 | The Liri developers 24 | Liri-udviklerne 25 | Die Liri-Entwickler 26 | Gli sviluppatori di Liri 27 | Liri plėtotojai 28 | Os desenvolvedores do Liri 29 | Разработчики Liri 30 | Liri geliştiricileri 31 | Liri 开发者 32 | CC0-1.0 33 | GPL-3.0+ 34 | 35 |

36 | Liri Calculator is a Material Design application that solves mathematical equations. 37 |

38 |

Liri Lommeregner er et Material Design-program som løser matematiske ligninger.

39 |

Liri Taschenrechner ist eine Material-Design-Anwendung, die mathematische Gleichungen löst.

40 |

La Calcolatrice Liri è un'applicazione in Material Design che risolve equazioni matematiche.

41 |

O Liri Calculator é um aplicativo Material Design que resolve equações matemáticas.

42 |

Liri Calculator - это приложение в стиле material design, выполняющее математические вычисления.

43 |

Liri Hesap Makinesi, matematiksel denklemleri çözen Materyal Tasarımlı uygulamadır.

44 |

Liri 计算器是一个 Material 设计的,用于解决数学计算的应用程序。

45 |

46 | At first it appears to be a simple calculator with only basic arithmetic operations. 47 | However it features a flexible expression parser with support for symbolic 48 | computation, a large set of built-in functions and constants and works with different 49 | data types like numbers, big numbers, complex numbers, fractions, units and matrices. 50 |

51 |

Ved første blik ser det ud til at være en simpel lommeregner, kun med grundlæggende aritmetiske operationer. Men den har en fleksibel udtryksfortolker med understøttelse af symbolske beregninger, et stort sæt indbyggede funktioner og konstanter, og den virker med forskellige datatyper såsom tal, store tal, komplekse tal, brøker, enheder og matricer.

52 |

Sebbene inizialmente sembri una calcolatrice che esegue operazioni aritmentiche di base, utilizza invece un potente interprete di espressioni con supporto per il calcolo simbolico e una vasta libreria di funzioni e costanti già definite. Può operare su tipi di dati diversi come numeri, anche di notevoli dimensioni, frazioni, unità e matrici.

53 |

A princípio, parece ser uma calculadora simples, com apenas operações aritméticas básicas. No entanto, possui um analisador de expressão flexível com suporte para computação simbólica, um grande conjunto de funções e constantes integradas e trabalha com diferentes tipos de dados como números, números grandes, números complexos, frações, unidades e matrizes.

54 |

İlkin yalnızca basit aritmetik işlemlerini yapabilen basit hesap makinesi olması için tasarlandı. Yine de simgesel hesaplama desteğiyle esnek ifade ayıklayıcı; geniş dahili fonksiyonlar ve sabitler takımı; sayılar, büyük sayılar, kompleks sayılar, kesirler, birimler ve matrisler gibi veri türleriyle çalışma gibi özellikleri barındırır.

55 |

初看它仅仅是一个能够进行简单的算数运算的计算器。但它其实带有了灵活的表达式解析器,支持符号计算、自带很多函数和常数,还支持大数计算、复数、分数、单位和矩阵运算。

56 |
57 | io.liri.Calculator.desktop 58 | 59 | liri-calculator 60 | 61 | 62 | 63 | https://raw.githubusercontent.com/lirios/calculator/develop/.project/screenshots/calculator1.png 64 | 65 | 66 | https://raw.githubusercontent.com/lirios/calculator/develop/.project/screenshots/calculator2.png 67 | 68 | 69 | 70 | HiDpiIcon 71 | ModernToolkit 72 | 73 | 74 | 75 | 76 |

Notable changes:

77 |
    78 |
  • CMake build system
  • 79 |
80 |
81 |
82 | 83 | 84 |

Notable changes:

85 |
    86 |
  • Load translations
  • 87 |
88 |
89 |
90 | 91 | 92 |

Notable changes:

93 |
    94 |
  • Update appdata
  • 95 |
96 |
97 |
98 | 99 | 100 |

Notable changes:

101 |
    102 |
  • Fix save dialog
  • 103 |
  • Follow Fluid 1.0 changes
  • 104 |
105 |
106 |
107 | 108 | 109 |

Notable changes:

110 |
    111 |
  • Complete rewrite
  • 112 |
  • QtQuick Controls 2.0 with Fluid framework
  • 113 |
  • MathJS backend
  • 114 |
  • New history panel
  • 115 |
  • New collapsible buttons panel
  • 116 |
  • New advanced mode, with saving and opening of .lcs file support
  • 117 |
  • New icon by Corbin Crutchley
  • 118 |
119 |
120 |
121 |
122 | https://liri.io 123 | https://github.com/lirios/calculator/issues/new 124 | https://liri.io/get-involved/ 125 | https://www.transifex.com/lirios/liri-calculator/ 126 | Liri 127 | info_at_liri.io 128 | liri-calculator 129 | 130 | none 131 | none 132 | none 133 | none 134 | none 135 | none 136 | none 137 | none 138 | none 139 | none 140 | none 141 | none 142 | none 143 | none 144 | none 145 | none 146 | none 147 | none 148 | none 149 | none 150 | none 151 | none 152 | none 153 | none 154 | none 155 | none 156 | none 157 | 158 |
159 | -------------------------------------------------------------------------------- /data/io.liri.Calculator.appdata.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | io.liri.Calculator 5 | Liri Calculator 6 | Perform arithmetic or scientific calculations 7 | The Liri developers 8 | CC0-1.0 9 | GPL-3.0+ 10 | 11 |

12 | Liri Calculator is a Material Design application that solves mathematical equations. 13 |

14 |

15 | At first it appears to be a simple calculator with only basic arithmetic operations. 16 | However it features a flexible expression parser with support for symbolic 17 | computation, a large set of built-in functions and constants and works with different 18 | data types like numbers, big numbers, complex numbers, fractions, units and matrices. 19 |

20 |
21 | io.liri.Calculator.desktop 22 | 23 | liri-calculator 24 | 25 | 26 | 27 | https://raw.githubusercontent.com/lirios/calculator/develop/.project/screenshots/calculator1.png 28 | 29 | 30 | https://raw.githubusercontent.com/lirios/calculator/develop/.project/screenshots/calculator2.png 31 | 32 | 33 | 34 | HiDpiIcon 35 | ModernToolkit 36 | 37 | 38 | 39 | 40 |

Notable changes:

41 |
    42 |
  • CMake build system
  • 43 |
44 |
45 |
46 | 47 | 48 |

Notable changes:

49 |
    50 |
  • Load translations
  • 51 |
52 |
53 |
54 | 55 | 56 |

Notable changes:

57 |
    58 |
  • Update appdata
  • 59 |
60 |
61 |
62 | 63 | 64 |

Notable changes:

65 |
    66 |
  • Fix save dialog
  • 67 |
  • Follow Fluid 1.0 changes
  • 68 |
69 |
70 |
71 | 72 | 73 |

Notable changes:

74 |
    75 |
  • Complete rewrite
  • 76 |
  • QtQuick Controls 2.0 with Fluid framework
  • 77 |
  • MathJS backend
  • 78 |
  • New history panel
  • 79 |
  • New collapsible buttons panel
  • 80 |
  • New advanced mode, with saving and opening of .lcs file support
  • 81 |
  • New icon by Corbin Crutchley
  • 82 |
83 |
84 |
85 |
86 | https://liri.io 87 | https://github.com/lirios/calculator/issues/new 88 | https://liri.io/get-involved/ 89 | https://www.transifex.com/lirios/liri-calculator/ 90 | Liri 91 | info_at_liri.io 92 | liri-calculator 93 | 94 | none 95 | none 96 | none 97 | none 98 | none 99 | none 100 | none 101 | none 102 | none 103 | none 104 | none 105 | none 106 | none 107 | none 108 | none 109 | none 110 | none 111 | none 112 | none 113 | none 114 | none 115 | none 116 | none 117 | none 118 | none 119 | none 120 | none 121 | 122 |
123 | -------------------------------------------------------------------------------- /data/io.liri.Calculator.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Liri Calculator 3 | Name[ar]=حاسبة ليري 4 | Name[da]=Liri Lommeregner 5 | Name[de]=Liri Taschenrechner 6 | Name[fr]=Calculatrice Liri 7 | Name[it]=Calcolatrice Liri 8 | Name[lt]=Liri skaičiuotuvas 9 | Name[nl]=Liri Rekenmachine 10 | Name[pl]=Kalkulator Liri 11 | Name[pt_BR]=Liri Calculator 12 | Name[ru]=Калькулятор Liri 13 | Name[tr]=Liri Hesap Makinesi 14 | Name[zh_CN]=Liri计算器 15 | GenericName=Calculator 16 | GenericName[ar]=الحاسبة 17 | GenericName[da]=Lommeregner 18 | GenericName[de]=Taschenrechner 19 | GenericName[fr]=Calculatrice 20 | GenericName[it]=Calcolatrice 21 | GenericName[lt]=Skaičiuotuvas 22 | GenericName[nl]=Rekenmachine 23 | GenericName[pl]=Kalkulator 24 | GenericName[pt_BR]=Calculadora 25 | GenericName[ru]=Калькулятор 26 | GenericName[tr]=Hesap Makinesi 27 | GenericName[zh_CN]=计算器 28 | Comment=Perform arithmetic and scientific calculations 29 | Comment[ar]=إجراء عمليات حسابية و علمية 30 | Comment[da]=Udfør aritmetiske og videnskabelige udregninger 31 | Comment[fr]=Effectuer des calculs arithmétiques et scientifiques 32 | Comment[it]=Esegui calcoli aritmentici e scientifici 33 | Comment[lt]=Atlikti aritmetinius ir mokslinius skaičiavimus 34 | Comment[nl]=Voer rekenkundige en wetenschappelijke berekeningen uit 35 | Comment[pl]=Wykonaj obliczenia arytmetyczne i naukowe 36 | Comment[pt_BR]=Execute cálculos aritméticos e científicos 37 | Comment[ru]=Проведение арифметических и инженерных расчетов 38 | Comment[tr]=Aritmetik ve bilimsel hesaplamalar gerçekleştir 39 | Comment[zh_CN]=执行算术和科学计算 40 | Keywords=calculation;arithmetic;scientific; 41 | Keywords[da]=udregning;aritmetiske;videnskabelige; 42 | Keywords[it]=calcolo;aritmentico;scientifico 43 | Keywords[lt]=skaičiuotuvas;aritmetinis;mokslinis; 44 | Keywords[pt_BR]=cálculo;aritmética;científica; 45 | Keywords[ru]=calculation;arithmetic;scientific; 46 | Keywords[tr]=hesaplama;aritmetik;bilimsel; 47 | Exec=liri-calculator 48 | Icon=io.liri.Calculator 49 | Terminal=false 50 | Type=Application 51 | StartupNotify=true 52 | Categories=X-Liri;Qt;Utility;Calculator; 53 | -------------------------------------------------------------------------------- /data/io.liri.Calculator.desktop.in: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | _Name=Liri Calculator 3 | _GenericName=Calculator 4 | _Comment=Perform arithmetic and scientific calculations 5 | _Keywords=calculation;arithmetic;scientific; 6 | Exec=liri-calculator 7 | Icon=io.liri.Calculator 8 | Terminal=false 9 | Type=Application 10 | StartupNotify=true 11 | Categories=X-Liri;Qt;Utility;Calculator; 12 | -------------------------------------------------------------------------------- /dist/flatpak/io.liri.Calculator.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "io.liri.Calculator", 3 | "branch": "master", 4 | "runtime": "org.kde.Platform", 5 | "runtime-version": "5.14", 6 | "sdk": "org.kde.Sdk", 7 | "command": "liri-calculator", 8 | "tags": [ 9 | "nightly" 10 | ], 11 | "desktop-file-name-suffix": " (Nightly)", 12 | "finish-args": [ 13 | "--device=dri", 14 | "--filesystem=host", 15 | "--socket=wayland", 16 | "--socket=x11", 17 | "--share=ipc" 18 | ], 19 | "modules": [ 20 | { 21 | "name": "cmake-shared", 22 | "buildsystem": "cmake-ninja", 23 | "sources": [ 24 | { 25 | "type": "git", 26 | "url": "git://github.com/lirios/cmake-shared.git", 27 | "branch": "develop" 28 | } 29 | ] 30 | }, 31 | { 32 | "name": "fluid", 33 | "buildsystem": "cmake-ninja", 34 | "config-opts": [ 35 | "-DFLUID_USE_SYSTEM_LCS:BOOL=ON", 36 | "-DFLUID_WITH_DOCUMENTATION:BOOL=OFF", 37 | "-DFLUID_WITH_DEMO:BOOL=OFF" 38 | ], 39 | "sources": [ 40 | { 41 | "type": "git", 42 | "url": "git://github.com/lirios/fluid.git", 43 | "branch": "develop" 44 | } 45 | ] 46 | }, 47 | { 48 | "name": "calculator", 49 | "buildsystem": "cmake-ninja", 50 | "sources": [ 51 | { 52 | "type": "git", 53 | "url": "git://github.com/lirios/calculator.git", 54 | "branch": "develop" 55 | } 56 | ] 57 | } 58 | ] 59 | } 60 | -------------------------------------------------------------------------------- /snap/snapcraft.yaml: -------------------------------------------------------------------------------- 1 | name: liri-calculator 2 | version: git 3 | summary: A cross-platform material design calculator 4 | description: A cross-platform material design calculator 5 | grade: devel 6 | confinement: strict 7 | architectures: [amd64] 8 | 9 | plugs: 10 | platform: 11 | interface: content 12 | content: liri-platform 13 | target: liri-platform 14 | default-provider: liri-platform-0-9 15 | 16 | apps: 17 | liri-calculator: 18 | command: liri-app-launch $SNAP/bin/liri-calculator 19 | desktop: share/applications/io.liri.Calculator.desktop 20 | plugs: 21 | - desktop 22 | - desktop-legacy 23 | - wayland 24 | - unity7 25 | - opengl 26 | 27 | parts: 28 | liri-calculator: 29 | source: . 30 | plugin: qbs 31 | prepare: | 32 | sed -i 's|Icon=.*|Icon=${SNAP}/share/icons/hicolor/256x256/apps/io\.liri\.Calculator\.png|g' data/io.liri.Calculator.desktop 33 | build-attributes: ["no-system-libraries"] 34 | after: [liri-platform-0-9] 35 | -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | qt_add_executable(LiriCalculator 2 | WIN32 MACOSX_BUNDLE 3 | main.cpp 4 | filehandler.cpp filehandler.h 5 | ) 6 | 7 | qt_add_qml_module(LiriCalculator 8 | URI Application 9 | VERSION 2.0 10 | QML_FILES 11 | qml/ButtonsPanel.qml 12 | qml/ButtonsView.qml 13 | qml/CalculationLine.qml 14 | qml/CalculationZone.qml 15 | qml/HistoryPanel.qml 16 | qml/Main.qml 17 | qml/math.js 18 | qml/NavButton.qml 19 | qml/Shortcuts.qml 20 | qml/Styles.qml 21 | RESOURCES 22 | icons/icon.png 23 | ) 24 | 25 | target_compile_definitions(LiriCalculator PRIVATE 26 | QT_NO_CAST_FROM_ASCII 27 | QT_NO_FOREACH 28 | ) 29 | 30 | file(GLOB ts_files "../translations/*.ts") 31 | qt_add_translations(LiriCalculator 32 | TS_FILES ${ts_files} 33 | RESOURCE_PREFIX /qt/qml/Application/i18n 34 | ) 35 | 36 | target_link_libraries(LiriCalculator 37 | PRIVATE 38 | Qt6::Core 39 | Qt6::Core5Compat 40 | Qt6::Gui 41 | Qt6::Widgets 42 | Qt6::Qml 43 | Qt6::Quick 44 | Qt6::QuickControls2 45 | ) 46 | 47 | if(APPLE OR WIN32) 48 | set_target_properties(LiriCalculator PROPERTIES OUTPUT_NAME "LiriCalculator") 49 | else() 50 | set_target_properties(LiriCalculator PROPERTIES OUTPUT_NAME "liri-calculator") 51 | endif() 52 | if(APPLE) 53 | set_target_properties(LiriCalculator PROPERTIES 54 | MACOSX_BUNDLE_GUI_IDENTIFIER "io.liri.Calculator" 55 | MACOSX_BUNDLE_ICON_FILE "io.liri.Calculator" 56 | MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION}" 57 | ) 58 | endif() 59 | 60 | install(TARGETS LiriCalculator 61 | BUNDLE DESTINATION . 62 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} 63 | ) 64 | -------------------------------------------------------------------------------- /src/filehandler.cpp: -------------------------------------------------------------------------------- 1 | #include "filehandler.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | FileHandler::FileHandler(QObject *parent):QObject(parent), 14 | m_document(nullptr){} 15 | 16 | QQuickTextDocument *FileHandler::document() const { 17 | return m_document; 18 | } 19 | 20 | void FileHandler::setDocument(QQuickTextDocument *document) { 21 | if (document == m_document) { 22 | return; 23 | } 24 | 25 | m_document = document; 26 | emit documentChanged(); 27 | } 28 | 29 | QString FileHandler::fileName() const { 30 | const QString filePath = QQmlFile::urlToLocalFileOrQrc(m_fileUrl); 31 | const QString fileName = QFileInfo(filePath).fileName(); 32 | if (fileName.isEmpty()) { 33 | return QStringLiteral("untitled.lcs"); 34 | } 35 | return fileName; 36 | } 37 | 38 | QString FileHandler::fileType() const { 39 | return QFileInfo(fileName()).suffix(); 40 | } 41 | 42 | QUrl FileHandler::fileUrl() const { 43 | return m_fileUrl; 44 | } 45 | 46 | void FileHandler::load(const QUrl &fileUrl) { 47 | if (fileUrl == m_fileUrl) { 48 | return; 49 | } 50 | 51 | QQmlEngine *engine = qmlEngine(this); 52 | if (!engine) { 53 | qWarning() << "load() called before DocumentHandler has QQmlEngine"; 54 | return; 55 | } 56 | 57 | QQmlFileSelector* selector = new QQmlFileSelector(engine); 58 | const QUrl path = selector->selector()->select(fileUrl); 59 | const QString fileName = QQmlFile::urlToLocalFileOrQrc(path); 60 | if (QFile::exists(fileName)) { 61 | QFile file(fileName); 62 | if (file.open(QFile::ReadOnly)) { 63 | QByteArray data = file.readAll(); 64 | QTextCodec *codec = QTextCodec::codecForHtml(data); 65 | if (QTextDocument *doc = textDocument()) { 66 | doc->setModified(false); 67 | } 68 | 69 | emit loaded(codec->toUnicode(data)); 70 | } 71 | } 72 | 73 | m_fileUrl = fileUrl; 74 | emit fileUrlChanged(); 75 | } 76 | 77 | void FileHandler::saveAs(const QUrl &fileUrl) { 78 | QTextDocument *doc = textDocument(); 79 | if (!doc) { 80 | return; 81 | } 82 | 83 | const QString filePath = fileUrl.toLocalFile(); 84 | QFile file(filePath); 85 | if (!file.open(QFile::WriteOnly | QFile::Truncate | QFile::Text)) { 86 | emit error(tr("Cannot save: ") + file.errorString()); 87 | return; 88 | } 89 | file.write(doc->toPlainText().toUtf8()); 90 | file.close(); 91 | 92 | if (fileUrl == m_fileUrl) 93 | return; 94 | 95 | m_fileUrl = fileUrl; 96 | emit fileUrlChanged(); 97 | } 98 | 99 | QTextDocument *FileHandler::textDocument() const { 100 | if (!m_document) { 101 | return nullptr; 102 | } 103 | 104 | return m_document->textDocument(); 105 | } 106 | 107 | #include "moc_filehandler.cpp" 108 | -------------------------------------------------------------------------------- /src/filehandler.h: -------------------------------------------------------------------------------- 1 | #ifndef FILEHANDLER_H 2 | #define FILEHANDLER_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | QT_BEGIN_NAMESPACE 9 | class QTextDocument; 10 | class QQuickTextDocument; 11 | QT_END_NAMESPACE 12 | 13 | class FileHandler : public QObject 14 | { 15 | Q_OBJECT 16 | QML_ELEMENT 17 | 18 | Q_PROPERTY(QQuickTextDocument *document READ document WRITE setDocument NOTIFY documentChanged) 19 | Q_PROPERTY(QString fileName READ fileName NOTIFY fileUrlChanged) 20 | Q_PROPERTY(QString fileType READ fileType NOTIFY fileUrlChanged) 21 | Q_PROPERTY(QUrl fileUrl READ fileUrl NOTIFY fileUrlChanged) 22 | 23 | public: 24 | explicit FileHandler(QObject *parent = nullptr); 25 | 26 | QQuickTextDocument *document() const; 27 | void setDocument(QQuickTextDocument *document); 28 | QString fileName() const; 29 | QString fileType() const; 30 | QUrl fileUrl() const; 31 | 32 | public Q_SLOTS: 33 | void load(const QUrl &fileUrl); 34 | void saveAs(const QUrl &fileUrl); 35 | 36 | Q_SIGNALS: 37 | void documentChanged(); 38 | void textChanged(); 39 | void fileUrlChanged(); 40 | void loaded(const QString &text); 41 | void error(const QString &message); 42 | 43 | private: 44 | QTextDocument *textDocument() const; 45 | QQuickTextDocument *m_document; 46 | QUrl m_fileUrl; 47 | }; 48 | 49 | #endif // FILEHANDLER_H 50 | -------------------------------------------------------------------------------- /src/icons/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lirios/calculator/ddfe99e89bd4153102cb11796766df230b1458c9/src/icons/icon.png -------------------------------------------------------------------------------- /src/icons/liri-calculator.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lirios/calculator/ddfe99e89bd4153102cb11796766df230b1458c9/src/icons/liri-calculator.icns -------------------------------------------------------------------------------- /src/main.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Liri Calculator 3 | * 4 | * Copyright (C) 2016 Pierre Jacquier 5 | * 6 | * $BEGIN_LICENSE:GPL3+$ 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | * $END_LICENSE$ 22 | */ 23 | 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | #include 33 | #include 34 | #include 35 | 36 | using namespace Qt::StringLiterals; 37 | 38 | int main(int argc, char *argv[]) 39 | { 40 | // Set Material Design QtQuick Controls 2 style 41 | QQuickStyle::setStyle(QStringLiteral("Material")); 42 | 43 | QApplication app(argc, argv); 44 | app.setOrganizationName(QStringLiteral("Liri")); 45 | app.setOrganizationDomain(QStringLiteral("liri.io")); 46 | app.setApplicationName(QStringLiteral("Calculator")); 47 | app.setDesktopFileName(QStringLiteral("io.liri.Calculator")); 48 | app.setWindowIcon(QIcon(QStringLiteral(":/qt/icons/icon.png"))); 49 | 50 | // Load Qt translations 51 | QTranslator qtTranslator; 52 | if (qtTranslator.load(QLocale(), "qt"_L1, "_"_L1, 53 | QLibraryInfo::path(QLibraryInfo::TranslationsPath))) 54 | app.installTranslator(&qtTranslator); 55 | 56 | // Load translations from resources 57 | QTranslator translator; 58 | if (translator.load(QLocale(), "liri-calculator"_L1, "_"_L1, ":/qt/qml/Application/i18n"_L1)) 59 | QCoreApplication::installTranslator(&translator); 60 | 61 | // Set the X11 WM_CLASS so X11 desktops can find the desktop file 62 | qputenv("RESOURCE_NAME", "io.liri.Calculator"); 63 | 64 | // create qml app engine 65 | QQmlApplicationEngine engine; 66 | 67 | #ifdef QT_DEBUG 68 | engine.rootContext()->setContextProperty(QStringLiteral("debug"), true); 69 | #else 70 | engine.rootContext()->setContextProperty(QStringLiteral("debug"), false); 71 | #endif 72 | 73 | // Quit on error 74 | QObject::connect(&engine, &QQmlApplicationEngine::objectCreationFailed, 75 | QCoreApplication::instance(), QCoreApplication::quit, 76 | Qt::QueuedConnection); 77 | 78 | // load main ui 79 | engine.loadFromModule("Application", "Main"); 80 | 81 | return app.exec(); 82 | } 83 | -------------------------------------------------------------------------------- /src/qml/ButtonsPanel.qml: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Liri Calculator 3 | * 4 | * Copyright (C) 2016 Pierre Jacquier 5 | * 6 | * $BEGIN_LICENSE:GPL3+$ 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | * $END_LICENSE$ 22 | */ 23 | 24 | import QtQuick 25 | import QtQuick.Layouts 26 | import QtQuick.Controls 27 | import QtQuick.Controls.Material 28 | import Fluid.Controls 29 | 30 | Rectangle { 31 | id: buttonsPanel 32 | 33 | property alias computedHeight: fns.height 34 | 35 | height: computedHeight 36 | 37 | Row { 38 | anchors.fill: parent 39 | 40 | ButtonsView { 41 | id: fns 42 | color: styles.accentColor 43 | labels: ['sqrt','exp','log','cos','sin','tan','acos','asin','atan','π','∞','x10^'] 44 | targets: ['sqrt(','exp(','log','cos(','sin(','tan(','acos(','asin(','atan(','pi','Infinity','e'] 45 | onButtonClicked: (strToAppend) => calculationZone.appendToFormula(strToAppend) 46 | } 47 | 48 | ButtonsView { 49 | color: Material.color(Material.Grey, Material.Shade900) 50 | labels: ['7', '8', '9', '←', '4', '5', '6', '^', '1', '2', '3', '!', '.', '0', '(', ')'] 51 | targets: ['7', '8', '9', 'DEL', '4', '5', '6', '^', '1', '2', '3', '!', '.', '0', '(', ')'] 52 | onButtonClicked: (strToAppend) => calculationZone.appendToFormula(strToAppend) 53 | onButtonLongPressed: { 54 | if (strToAppend === "DEL") { 55 | calculationZone.clearFormula(); 56 | } 57 | } 58 | } 59 | 60 | ButtonsView { 61 | color: Material.color(Material.Grey, Material.Shade800) 62 | labels: ['+', '-', '×', '÷'] 63 | targets: ['+', '-', '*', '/'] 64 | onButtonClicked: (strToAppend) => calculationZone.appendToFormula(strToAppend) 65 | } 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/qml/ButtonsView.qml: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Liri Calculator 3 | * 4 | * Copyright (C) 2016 Pierre Jacquier 5 | * 6 | * $BEGIN_LICENSE:GPL3+$ 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | * $END_LICENSE$ 22 | */ 23 | 24 | import QtQuick 25 | import QtQuick.Layouts 26 | import QtQuick.Controls 27 | import QtQuick.Controls.Material 28 | import Fluid.Controls 29 | 30 | Rectangle { 31 | id: buttonsView 32 | implicitHeight: grid.implicitHeight 33 | implicitWidth: grid.implicitWidth 34 | property var labels 35 | property var targets 36 | property int rowsCount: 4 37 | property int fontSize: 17 38 | signal buttonClicked(string strToAppend) 39 | signal buttonLongPressed(string strToAppend) 40 | 41 | Grid { 42 | id: grid 43 | columns: getColumnsCount() 44 | rows: 4 45 | topPadding: Units.smallSpacing 46 | bottomPadding: Units.smallSpacing 47 | rowSpacing: Units.smallSpacing 48 | columnSpacing: 0 49 | 50 | Repeater { 51 | model: buttonsView.labels 52 | 53 | Label { 54 | text: modelData 55 | width: root.width / 8 56 | topPadding: Units.smallSpacing / 2 57 | bottomPadding: Units.smallSpacing / 2 58 | horizontalAlignment: Qt.AlignHCenter 59 | verticalAlignment: Qt.AlignVCenter 60 | color: 'white' 61 | font.pixelSize: buttonsView.fontSize 62 | 63 | MouseArea { 64 | anchors.fill: parent 65 | onClicked: buttonsView.buttonClicked(targets[index]) 66 | onPressAndHold: buttonsView.buttonLongPressed(targets[index]) 67 | } 68 | 69 | } 70 | } 71 | } 72 | 73 | function getColumnsCount() { 74 | return Math.ceil(buttonsView.labels.length / buttonsView.rowsCount); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /src/qml/CalculationLine.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2 | import QtQuick.Layouts 3 | import QtQuick.Controls 4 | import QtQuick.Controls.Material 5 | import Fluid.Controls 6 | 7 | Column { 8 | width: root.width 9 | padding: Units.smallSpacing 10 | spacing: Units.smallSpacing 11 | 12 | Row { 13 | width: parent.width 14 | height: formulaEdit.height 15 | spacing: Units.smallSpacing 16 | 17 | TextEdit { 18 | id: formulaEdit 19 | text: formula 20 | width: (root.width - 3 * Units.smallSpacing) * 2/3 21 | font.pointSize: root.styles.advancedFontSize 22 | opacity: root.styles.secondaryTextOpacity 23 | selectByMouse: true 24 | wrapMode: TextEdit.WrapAnywhere 25 | onTextChanged: { 26 | formula = text; 27 | var calculations = []; 28 | for (var i=0; i 0) { 44 | setFocusAt(index - 1) 45 | } 46 | } 47 | Keys.onPressed: { 48 | switch (event.key) { 49 | case Qt.Key_Enter: 50 | case Qt.Key_Return: 51 | event.accepted = true; 52 | calculationsRepeater.model.insert(index + 1,{ formula: '', result: '' }); 53 | setFocusAt(index + 1); 54 | if (index + 2 === calculationsRepeater.model.count && advancedView.contentHeight >= advancedView.height) { 55 | advancedView.contentY = advancedView.contentHeight - advancedView.height; 56 | } 57 | break; 58 | case Qt.Key_Backspace: 59 | if (index > 0 && event.key === Qt.Key_Backspace && text === '') { 60 | setFocusAt(index - 1); 61 | calculationsRepeater.model.remove(index, 1); 62 | } 63 | break; 64 | default: return; 65 | } 66 | } 67 | } 68 | 69 | Text { 70 | id: formulaResult 71 | text: hasError ? qsTr('Error') : formula === '' ? '' : result 72 | color: hasError ? 'red' : 'black' 73 | height: formulaEdit.height 74 | opacity: hasError ? root.styles.hintTextOpacity : root.styles.primaryTextOpacity 75 | width: (root.width - 3 * Units.smallSpacing) * 1/3 76 | font.pointSize: root.styles.advancedFontSize 77 | horizontalAlignment: Text.AlignRight 78 | clip: true 79 | wrapMode: TextEdit.NoWrap 80 | font.italic: hasError 81 | verticalAlignment: Qt.AlignBottom 82 | 83 | property bool hasError: result === 'undefined' && formula !== '' 84 | 85 | MouseArea { 86 | visible: parent.hasError 87 | enabled: parent.hasError 88 | anchors.fill: parent 89 | cursorShape: Qt.PointingHandCursor 90 | onClicked: snackBar.open(root.lastError) 91 | } 92 | } 93 | } 94 | 95 | Rectangle { 96 | width: root.width - 2 * Units.smallSpacing 97 | height: 1 98 | color: formulaResult.hasError ? 'red' : 'black' 99 | opacity: 0.1 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /src/qml/CalculationZone.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2 | import QtQuick.Layouts 3 | import QtQuick.Controls 4 | import QtQuick.Controls.Material 5 | import Fluid.Controls 6 | import Fluid.Effects as FluidEffects 7 | 8 | Rectangle { 9 | id: calculationZone 10 | color: 'white' 11 | layer.enabled: true 12 | z: 10 13 | layer.effect: FluidEffects.Elevation { elevation: 2 } 14 | 15 | property alias formula: formula 16 | property alias result: result 17 | property alias calculationsRepeater: calculationsRepeater 18 | 19 | height: root.advanced ? root.height : getHeight() 20 | 21 | Rectangle { 22 | id: advancedToolbar 23 | anchors.top: parent.top 24 | anchors.left: parent.left 25 | anchors.right: parent.right 26 | height: 40 27 | layer.enabled: root.advanced 28 | layer.effect: FluidEffects.Elevation { 29 | elevation: advancedView.contentY < 5 ? 0 : 2 30 | 31 | Behavior on elevation { 32 | NumberAnimation { duration: 400 } 33 | } 34 | } 35 | 36 | Text { 37 | id: filename 38 | visible: root.advanced 39 | text: getDisplayableFileName() 40 | anchors.top: parent.top 41 | anchors.left: parent.left 42 | anchors.margins: Units.smallSpacing 43 | font.pointSize: 12 44 | opacity: root.styles.secondaryTextOpacity 45 | } 46 | 47 | Row { 48 | id: actions 49 | anchors.top: parent.top 50 | anchors.right: parent.right 51 | 52 | NavButton { 53 | id: helpButton 54 | visible: root.advanced 55 | icon.source: Utils.iconUrl("action/info_outline") 56 | ToolTip.text: qsTr('Help') 57 | onClicked: Qt.openUrlExternally('http://mathjs.org/docs/expressions/syntax.html') 58 | } 59 | 60 | NavButton { 61 | id: openButton 62 | visible: root.advanced 63 | icon.source: Utils.iconUrl("file/folder_open") 64 | ToolTip.text: qsTr('Open file') + ' (Ctrl+O)' 65 | onClicked: openFile() 66 | } 67 | 68 | NavButton { 69 | id: saveButton 70 | enabled: document.edited || document.unsaved 71 | visible: root.advanced 72 | icon.source: Utils.iconUrl("content/save") 73 | opacity: enabled ? root.styles.secondaryTextOpacity : root.styles.hintTextOpacity 74 | ToolTip.text: qsTr('Save file') + ' (Ctrl+S)' 75 | onClicked: saveFile() 76 | } 77 | 78 | NavButton { 79 | id: advancedButton 80 | visible: !root.advanced 81 | icon.source: Utils.iconUrl("action/list") 82 | ToolTip.text: qsTr('Advanced mode') + ' (Ctrl+D)' 83 | onClicked: setAdvanced(true) 84 | } 85 | 86 | NavButton { 87 | id: closeButton 88 | visible: root.advanced 89 | icon.source: Utils.iconUrl("navigation/close") 90 | ToolTip.text: qsTr('Close advanced mode') 91 | onClicked: closeFile() 92 | } 93 | 94 | NavButton { 95 | id: historyButton 96 | visible: !root.advanced 97 | icon.source: Utils.iconUrl(historyPanel.visible ? "communication/dialpad" : "action/history") 98 | ToolTip.text: qsTr('Toggle history') + ' (Ctrl+H)' 99 | onClicked: toogleHistory() 100 | } 101 | 102 | NavButton { 103 | id: expandButton 104 | visible: !root.advanced 105 | icon.source: Utils.iconUrl(root.expanded ? "navigation/expand_less" : "navigation/expand_more") 106 | ToolTip.text: qsTr('Toggle expanded') + ' (Ctrl+E)' 107 | onClicked: toogleExpanded() 108 | } 109 | } 110 | } 111 | 112 | Flickable { 113 | id: advancedView 114 | visible: root.advanced 115 | y: advancedToolbar.height 116 | height: parent.height - y 117 | clip: true 118 | width: root.width 119 | contentHeight: contentColumn.height 120 | contentWidth: contentColumn.width 121 | flickableDirection: Flickable.VerticalFlick 122 | boundsBehavior: Flickable.StopAtBounds 123 | 124 | Column { 125 | id: contentColumn 126 | spacing: Units.smallSpacing 127 | width: parent.width 128 | 129 | property Transition transition: Transition { 130 | PropertyAnimation { properties: "x,opacity"; easing.type: Easing.InOutQuad } 131 | } 132 | 133 | move: transition 134 | add: transition 135 | 136 | Repeater { 137 | id: calculationsRepeater 138 | width: parent.width 139 | 140 | model: ListModel { 141 | ListElement { 142 | formula: '' 143 | result: '' 144 | } 145 | } 146 | 147 | delegate: CalculationLine {} 148 | } 149 | } 150 | } 151 | 152 | Flickable { 153 | id: formulaFlick 154 | anchors.top: parent.top 155 | anchors.left: parent.left 156 | clip: true 157 | anchors.bottom: result.top 158 | width: root.width - actions.width 159 | visible: !root.advanced 160 | contentHeight: formula.implicitHeight 161 | flickableDirection: Flickable.VerticalFlick 162 | ScrollIndicator.vertical: ScrollIndicator {} 163 | 164 | function ensureVisible(r) { 165 | if (contentY >= r.y) { 166 | contentY = r.y; 167 | } 168 | else if (contentY + height <= r.y + r.height) { 169 | contentY = r.y + r.height - height; 170 | } 171 | } 172 | 173 | TextInput { 174 | id: formula 175 | color: 'black' 176 | opacity: root.styles.secondaryTextOpacity 177 | padding: Units.smallSpacing 178 | anchors.top: parent.top 179 | anchors.left: parent.left 180 | anchors.right: parent.right 181 | font.pixelSize: 20 182 | wrapMode: TextInput.WrapAnywhere 183 | selectByMouse: true 184 | onTextChanged: { 185 | addToHistoryTimer.restart(); 186 | result.text = calculate(text); 187 | } 188 | onCursorRectangleChanged: formulaFlick.ensureVisible(cursorRectangle) 189 | } 190 | } 191 | 192 | DisplayLabel { 193 | id: result 194 | opacity: root.styles.primaryTextOpacity 195 | visible: !root.advanced 196 | anchors.bottom: parent.bottom 197 | anchors.left: parent.left 198 | anchors.right: parent.right 199 | anchors.margins: Units.smallSpacing 200 | horizontalAlignment: TextInput.AlignRight 201 | level: 1 202 | text: '' 203 | } 204 | 205 | // Shouldn't be needed but the update isn't triggered otherwise 206 | function getHeight() { 207 | return calculationZone.formula.height + 4 * Units.smallSpacing + result.height; 208 | } 209 | 210 | function loadFileContent(text) { 211 | var formulas = text.split('\n'); 212 | calculationsRepeater.model.clear(); 213 | for (var i=0; i 5 | * 6 | * $BEGIN_LICENSE:GPL3+$ 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | * $END_LICENSE$ 22 | */ 23 | 24 | import QtQuick 25 | import QtQuick.Layouts 26 | import QtQuick.Controls 27 | import QtQuick.Controls.Material 28 | import Fluid.Controls 29 | 30 | Rectangle { 31 | id: historyPanel 32 | color: 'white' 33 | property ListModel historyModel: ListModel { } 34 | 35 | ListView { 36 | id: list 37 | anchors.margins: Units.smallSpacing 38 | anchors.fill: parent 39 | model: historyModel 40 | boundsBehavior: Flickable.StopAtBounds 41 | snapMode: ListView.NoSnap 42 | spacing: Units.smallSpacing 43 | 44 | delegate: Label { 45 | width: parent.width 46 | font.pointSize: root.styles.historyFontSize 47 | textFormat: Text.StyledText 48 | wrapMode: Text.WrapAnywhere 49 | text: '' + formula + ' = ' + result + '' 50 | 51 | MouseArea { 52 | anchors.fill: parent 53 | onClicked: calculationZone.replaceFormula(formula) 54 | } 55 | } 56 | 57 | ScrollIndicator.vertical: ScrollIndicator { active: true } 58 | } 59 | 60 | function add() { 61 | if (calculationZone.getFormulaText() !== '' && calculationZone.result.text !== '') { 62 | historyModel.insert(0, { 63 | formula: calculationZone.getFormulaText(), 64 | result: calculationZone.result.text, 65 | }); 66 | } 67 | } 68 | 69 | function clear() { 70 | historyModel.clear(); 71 | calculationZone.retrieveFormulaFocus(); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /src/qml/Main.qml: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Liri Calculator 3 | * 4 | * Copyright (C) 2016 Pierre Jacquier 5 | * 6 | * $BEGIN_LICENSE:GPL3+$ 7 | * 8 | * This program is free software: you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation, either version 3 of the License, or 11 | * (at your option) any later version. 12 | * 13 | * This program is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | * GNU General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU General Public License 19 | * along with this program. If not, see . 20 | * 21 | * $END_LICENSE$ 22 | */ 23 | 24 | import QtCore 25 | import QtQuick 26 | import QtQuick.Layouts 27 | import QtQuick.Controls.Material 28 | import QtQuick.Controls 29 | import Fluid.Controls as FluidControls 30 | import Fluid.Controls 31 | import Qt.labs.platform 32 | import Application 33 | import "math.js" as MathJs 34 | 35 | ApplicationWindow { 36 | id: root 37 | visible: true 38 | 39 | property bool expanded: true 40 | property bool advanced: false 41 | 42 | property string history: '' 43 | 44 | property string lastFormula 45 | property string lastError 46 | 47 | property int normalWidth: 64 * (3 + 4 + 1) 48 | property int normalHeight: root.expanded ? buttonsPanel.height + normalCalculationZoneHeight : normalCalculationZoneHeight 49 | property int advancedWidth: 700 50 | property int advancedHeight: 400 51 | property int normalCalculationZoneHeight: 110 52 | 53 | height: normalHeight 54 | minimumHeight: normalHeight 55 | width: normalWidth 56 | minimumWidth: normalWidth 57 | header: Item {} 58 | title: 'Calculator' 59 | 60 | Component.onCompleted: { 61 | MathJs.mathJs.config({ 62 | number: 'BigNumber' 63 | }); 64 | calculationZone.retrieveFormulaFocus(); 65 | retrieveHistory(); 66 | } 67 | 68 | Component.onDestruction: saveHistory() 69 | 70 | property Item styles: Styles {} 71 | 72 | Shortcuts {} 73 | 74 | Settings { 75 | property alias expanded: root.expanded 76 | property alias history: root.history 77 | } 78 | 79 | CalculationZone { 80 | id: calculationZone 81 | anchors.top: parent.top 82 | anchors.left: parent.left 83 | anchors.right: parent.right 84 | anchors.bottom: root.advanced || !root.expanded ? parent.bottom : buttonsPanel.top 85 | } 86 | 87 | ButtonsPanel { 88 | id: buttonsPanel 89 | anchors.left: parent.left 90 | anchors.right: parent.right 91 | anchors.bottom: parent.bottom 92 | visible: !root.advanced && root.expanded 93 | } 94 | 95 | HistoryPanel { 96 | id: historyPanel 97 | visible: false 98 | anchors.left: parent.left 99 | anchors.right: parent.right 100 | anchors.bottom: parent.bottom 101 | anchors.top: calculationZone.bottom 102 | height: buttonsPanel.height 103 | } 104 | 105 | Timer { 106 | id: addToHistoryTimer 107 | running: false 108 | interval: 1000 109 | onTriggered: historyPanel.add() 110 | } 111 | 112 | FileHandler { 113 | id: document 114 | document: documentText.textDocument 115 | onError: snackBar.open(message) 116 | onFileUrlChanged: updateTitle() 117 | onLoaded: { 118 | setAdvanced(true); 119 | calculationZone.loadFileContent(text); 120 | document.edited = false; 121 | } 122 | 123 | property bool edited: false 124 | property bool unsaved: document.fileName === 'untitled.lcs' 125 | 126 | function setEdited(edited) { 127 | this.edited = edited; 128 | root.updateTitle(); 129 | } 130 | } 131 | 132 | TextEdit { 133 | visible: false 134 | id: documentText 135 | } 136 | 137 | FileDialog { 138 | id: openDialog 139 | fileMode: FileDialog.OpenFile 140 | selectedNameFilter.index: 1 141 | nameFilters: ["Liri Calculator Script (*.lcs)"] 142 | folder: StandardPaths.writableLocation(StandardPaths.DocumentsLocation) 143 | onAccepted: document.load(file) 144 | } 145 | 146 | FileDialog { 147 | id: saveDialog 148 | fileMode: FileDialog.SaveFile 149 | defaultSuffix: document.fileType 150 | nameFilters: openDialog.nameFilters 151 | selectedNameFilter.index: document.fileType === 'lcs' ? 0 : 1 152 | folder: StandardPaths.writableLocation(StandardPaths.DocumentsLocation) 153 | onAccepted: saveFile(true, file) 154 | } 155 | 156 | FluidControls.AlertDialog { 157 | id: alertDialog 158 | x: (parent.width - width) / 2 159 | y: (parent.height - height) / 2 160 | standardButtons: Dialog.Ok | Dialog.Cancel 161 | title: qsTr('Discard unsaved?') 162 | onAccepted: target === 'close' ? closeFile(true) : openFile(true) 163 | 164 | property string target: '' 165 | 166 | function show(target) { 167 | alertDialog.open(); 168 | alertDialog.target = target; 169 | } 170 | } 171 | 172 | SnackBar { 173 | id: snackBar 174 | z: 99 175 | } 176 | 177 | function retrieveHistory() { 178 | historyPanel.historyModel.clear(); 179 | var historyArray = JSON.parse(root.history); 180 | for (var i = 0; i < historyArray.length; i++) { 181 | historyPanel.historyModel.append(historyArray[i]); 182 | } 183 | } 184 | 185 | function saveHistory() { 186 | var historyArray = []; 187 | for (var i = 0; i < historyPanel.historyModel.count; i++) { 188 | var item = historyPanel.historyModel.get(i); 189 | historyArray.push({ 190 | formula: item.formula, 191 | result: item.result, 192 | }); 193 | } 194 | root.history = JSON.stringify(historyArray) 195 | } 196 | 197 | function saveFile(bypass, bypassFileUrl) { 198 | if (!bypass) { 199 | if (document.unsaved) { 200 | saveDialog.open(); 201 | return; 202 | } 203 | } 204 | document.saveAs(bypassFileUrl ? bypassFileUrl : document.fileUrl); 205 | document.edited = false; 206 | snackBar.open((bypassFileUrl ? bypassFileUrl : document.fileName) + ' ' + qsTr('saved')); 207 | updateTitle(); 208 | } 209 | 210 | function closeFile(bypass) { 211 | if (!(documentText.text === '')) { 212 | if (!bypass) { 213 | if (document.unsaved || document.edited) { 214 | alertDialog.show('close'); 215 | return; 216 | } 217 | } 218 | } 219 | 220 | document.load(null); 221 | setAdvanced(false); 222 | } 223 | 224 | function openFile(bypass) { 225 | if (!bypass && root.advanced) { 226 | if (document.unsaved || document.edited) { 227 | alertDialog.show('open'); 228 | return; 229 | } 230 | } 231 | openDialog.open(); 232 | } 233 | 234 | function getDisplayableFileName() { 235 | if (document.unsaved) { 236 | return 'Unsaved'; 237 | } 238 | if (document.edited) { 239 | return document.fileName + '*'; 240 | } 241 | return document.fileName; 242 | } 243 | 244 | function updateTitle() { 245 | root.title = 'Calculator'; 246 | if (root.advanced) { 247 | root.title += ' - ' + getDisplayableFileName(); 248 | } 249 | } 250 | 251 | function toogleExpanded() { 252 | setExpanded(!root.expanded); 253 | root.advanced = false; 254 | } 255 | 256 | function setExpanded(expanded) { 257 | root.expanded = expanded; 258 | updateTitle(); 259 | calculationZone.retrieveFormulaFocus(); 260 | } 261 | 262 | function toogleHistory() { 263 | historyPanel.visible = !historyPanel.visible; 264 | setExpanded(true); 265 | } 266 | 267 | function toogleAdvanced() { 268 | setAdvanced(!root.advanced); 269 | setExpanded(!root.advanced); 270 | } 271 | 272 | function setAdvanced(advanced) { 273 | root.advanced = advanced; 274 | root.width = advanced ? advancedWidth : normalWidth; 275 | root.height = advanced ? advancedHeight : normalHeight; 276 | 277 | if (advanced) { 278 | calculationZone.loadFileContent(calculationZone.formula.text); 279 | calculationZone.setFocusAt(0); 280 | } else { 281 | calculationZone.retrieveFormulaFocus(); 282 | } 283 | updateTitle(); 284 | } 285 | 286 | function setAdvancedContent(text) { 287 | calculationZone.formulasLines.text = text; 288 | } 289 | 290 | /* 291 | * Copyright (C) 2014 Canonical Ltd 292 | * 293 | * This file is part of Ubuntu Calculator App 294 | * 295 | * Ubuntu Calculator App is free software: you can redistribute it and/or modify 296 | * it under the terms of the GNU General Public License version 3 as 297 | * published by the Free Software Foundation. 298 | * 299 | * Ubuntu Calculator App is distributed in the hope that it will be useful, 300 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 301 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 302 | * GNU General Public License for more details. 303 | * 304 | * You should have received a copy of the GNU General Public License 305 | * along with this program. If not, see . 306 | */ 307 | 308 | function formatBigNumber(bigNumberToFormat) { 309 | // Maximum length of the result number 310 | var NUMBER_LENGTH_LIMIT = 14; 311 | 312 | if (bigNumberToFormat.toString().length > NUMBER_LENGTH_LIMIT) { 313 | var resultLength = MathJs.mathJs.format(bigNumberToFormat, {exponential: {lower: 1e-10, upper: 1e10}, 314 | precision: NUMBER_LENGTH_LIMIT}).toString().length; 315 | 316 | return MathJs.mathJs.format(bigNumberToFormat, {exponential: {lower: 1e-10, upper: 1e10}, 317 | precision: (NUMBER_LENGTH_LIMIT - resultLength + NUMBER_LENGTH_LIMIT)}).toString(); 318 | } 319 | return bigNumberToFormat.toString() 320 | } 321 | 322 | function calculate(formula, wantArray) { 323 | try { 324 | var res = MathJs.mathJs.eval(formula); 325 | if (!wantArray) { 326 | res = formatBigNumber(res); 327 | } 328 | } catch (exception) { 329 | if (debug) { 330 | console.log(exception.toString()); 331 | } 332 | lastError = exception.toString(); 333 | return ''; 334 | } 335 | return res; 336 | } 337 | } 338 | -------------------------------------------------------------------------------- /src/qml/NavButton.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2 | import QtQuick.Layouts 3 | import QtQuick.Controls 4 | import QtQuick.Controls.Material 5 | import Fluid.Controls as FluidControls 6 | 7 | FluidControls.ToolButton { 8 | implicitHeight: 40 9 | implicitWidth: 40 10 | icon.width: 20 11 | icon.height: 20 12 | icon.color: 'black' 13 | opacity: root.styles.secondaryTextOpacity 14 | hoverEnabled: true 15 | ToolTip.delay: 400 16 | ToolTip.timeout: 5000 17 | ToolTip.visible: hovered 18 | } 19 | -------------------------------------------------------------------------------- /src/qml/Shortcuts.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2 | 3 | Item { 4 | Shortcut { 5 | sequence: "Ctrl+D" 6 | onActivated: { 7 | if (!advanced) { 8 | setAdvanced(true) 9 | } 10 | } 11 | } 12 | 13 | Shortcut { 14 | sequence: "Ctrl+S" 15 | onActivated: saveFile() 16 | } 17 | 18 | Shortcut { 19 | sequence: "Ctrl+O" 20 | onActivated: openFile() 21 | } 22 | 23 | Shortcut { 24 | sequence: "Ctrl+H" 25 | onActivated: toogleHistory() 26 | enabled: !advanced 27 | } 28 | 29 | Shortcut { 30 | sequence: "Ctrl+E" 31 | onActivated: toogleExpanded() 32 | enabled: !advanced 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/qml/Styles.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2 | import QtQuick.Controls.Material 3 | 4 | Item { 5 | // Colors 6 | property string accentColor: Material.color(Material.Pink, Material.Shade500) 7 | 8 | // Font sizes 9 | property int advancedFontSize: 13 10 | property int historyFontSize: 13 11 | 12 | // Font opacities 13 | property double primaryTextOpacity: 0.87 14 | property double secondaryTextOpacity: 0.54 15 | property double hintTextOpacity: 0.38 16 | } 17 | -------------------------------------------------------------------------------- /translations/data/desktop/ar.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 PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Pier Luigi Fiorini , 2020 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2020-05-15 00:06+0000\n" 15 | "PO-Revision-Date: 2020-05-10 16:19+0000\n" 16 | "Last-Translator: Pier Luigi Fiorini , 2020\n" 17 | "Language-Team: Arabic (https://www.transifex.com/lirios/teams/71982/ar/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: ar\n" 22 | "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" 23 | 24 | #. (desktop-to-pot) Name 25 | #: io.liri.Calculator.desktop.in:2 26 | msgid "Liri Calculator" 27 | msgstr "حاسبة ليري" 28 | 29 | #. (desktop-to-pot) GenericName 30 | #: io.liri.Calculator.desktop.in:3 31 | msgid "Calculator" 32 | msgstr "الحاسبة" 33 | 34 | #. (desktop-to-pot) Comment 35 | #: io.liri.Calculator.desktop.in:4 36 | msgid "Perform arithmetic and scientific calculations" 37 | msgstr "إجراء عمليات حسابية و علمية" 38 | 39 | #. (desktop-to-pot) Keywords 40 | #: io.liri.Calculator.desktop.in:5 41 | msgid "calculation;arithmetic;scientific;" 42 | msgstr "" 43 | -------------------------------------------------------------------------------- /translations/data/desktop/da.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 PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # scootergrisen, 2020 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "PO-Revision-Date: 2020-05-10 16:19+0000\n" 15 | "Last-Translator: scootergrisen, 2020\n" 16 | "Language-Team: Danish (https://www.transifex.com/lirios/teams/71982/da/)\n" 17 | "MIME-Version: 1.0\n" 18 | "Content-Type: text/plain; charset=UTF-8\n" 19 | "Content-Transfer-Encoding: 8bit\n" 20 | "Language: da\n" 21 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 22 | 23 | #. (desktop-to-pot) "Name" entry 24 | #: io.liri.Calculator.desktop.in:2 25 | msgctxt "Name entry" 26 | msgid "Liri Calculator" 27 | msgstr "Liri Lommeregner" 28 | 29 | #. (desktop-to-pot) "GenericName" entry 30 | #: io.liri.Calculator.desktop.in:3 31 | msgctxt "GenericName entry" 32 | msgid "Calculator" 33 | msgstr "Lommeregner" 34 | 35 | #. (desktop-to-pot) "Comment" entry 36 | #: io.liri.Calculator.desktop.in:4 37 | msgctxt "Comment entry" 38 | msgid "Perform arithmetic and scientific calculations" 39 | msgstr "Udfør aritmetiske og videnskabelige udregninger" 40 | 41 | #. (desktop-to-pot) "Keywords" entry 42 | #: io.liri.Calculator.desktop.in:5 43 | msgctxt "Keywords entry" 44 | msgid "calculation;arithmetic;scientific;" 45 | msgstr "udregning;aritmetiske;videnskabelige;" 46 | -------------------------------------------------------------------------------- /translations/data/desktop/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 PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Ettore Atalan , 2021 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "PO-Revision-Date: 2020-05-10 16:19+0000\n" 15 | "Last-Translator: Ettore Atalan , 2021\n" 16 | "Language-Team: German (https://www.transifex.com/lirios/teams/71982/de/)\n" 17 | "MIME-Version: 1.0\n" 18 | "Content-Type: text/plain; charset=UTF-8\n" 19 | "Content-Transfer-Encoding: 8bit\n" 20 | "Language: de\n" 21 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 22 | 23 | #. (desktop-to-pot) "Name" entry 24 | #: io.liri.Calculator.desktop.in:2 25 | msgctxt "Name entry" 26 | msgid "Liri Calculator" 27 | msgstr "Liri Taschenrechner" 28 | 29 | #. (desktop-to-pot) "GenericName" entry 30 | #: io.liri.Calculator.desktop.in:3 31 | msgctxt "GenericName entry" 32 | msgid "Calculator" 33 | msgstr "Taschenrechner" 34 | 35 | #. (desktop-to-pot) "Comment" entry 36 | #: io.liri.Calculator.desktop.in:4 37 | msgctxt "Comment entry" 38 | msgid "Perform arithmetic and scientific calculations" 39 | msgstr "" 40 | 41 | #. (desktop-to-pot) "Keywords" entry 42 | #: io.liri.Calculator.desktop.in:5 43 | msgctxt "Keywords entry" 44 | msgid "calculation;arithmetic;scientific;" 45 | msgstr "" 46 | -------------------------------------------------------------------------------- /translations/data/desktop/desktop.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 PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | #, fuzzy 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: PACKAGE VERSION\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 12 | "Last-Translator: FULL NAME \n" 13 | "Language-Team: LANGUAGE \n" 14 | "Language: \n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #. (desktop-to-pot) "Name" entry 20 | #: io.liri.Calculator.desktop.in:2 21 | msgctxt "Name entry" 22 | msgid "Liri Calculator" 23 | msgstr "" 24 | 25 | #. (desktop-to-pot) "GenericName" entry 26 | #: io.liri.Calculator.desktop.in:3 27 | msgctxt "GenericName entry" 28 | msgid "Calculator" 29 | msgstr "" 30 | 31 | #. (desktop-to-pot) "Comment" entry 32 | #: io.liri.Calculator.desktop.in:4 33 | msgctxt "Comment entry" 34 | msgid "Perform arithmetic and scientific calculations" 35 | msgstr "" 36 | 37 | #. (desktop-to-pot) "Keywords" entry 38 | #: io.liri.Calculator.desktop.in:5 39 | msgctxt "Keywords entry" 40 | msgid "calculation;arithmetic;scientific;" 41 | msgstr "" 42 | -------------------------------------------------------------------------------- /translations/data/desktop/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 PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Pier Luigi Fiorini , 2020 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2020-05-15 00:06+0000\n" 15 | "PO-Revision-Date: 2020-05-10 16:19+0000\n" 16 | "Last-Translator: Pier Luigi Fiorini , 2020\n" 17 | "Language-Team: French (https://www.transifex.com/lirios/teams/71982/fr/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: fr\n" 22 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 23 | 24 | #. (desktop-to-pot) Name 25 | #: io.liri.Calculator.desktop.in:2 26 | msgid "Liri Calculator" 27 | msgstr "Calculatrice Liri" 28 | 29 | #. (desktop-to-pot) GenericName 30 | #: io.liri.Calculator.desktop.in:3 31 | msgid "Calculator" 32 | msgstr "Calculatrice" 33 | 34 | #. (desktop-to-pot) Comment 35 | #: io.liri.Calculator.desktop.in:4 36 | msgid "Perform arithmetic and scientific calculations" 37 | msgstr "Effectuer des calculs arithmétiques et scientifiques" 38 | 39 | #. (desktop-to-pot) Keywords 40 | #: io.liri.Calculator.desktop.in:5 41 | msgid "calculation;arithmetic;scientific;" 42 | msgstr "" 43 | -------------------------------------------------------------------------------- /translations/data/desktop/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 PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Man from Mars, 2020 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "PO-Revision-Date: 2020-05-10 16:19+0000\n" 15 | "Last-Translator: Man from Mars, 2020\n" 16 | "Language-Team: Italian (https://www.transifex.com/lirios/teams/71982/it/)\n" 17 | "MIME-Version: 1.0\n" 18 | "Content-Type: text/plain; charset=UTF-8\n" 19 | "Content-Transfer-Encoding: 8bit\n" 20 | "Language: it\n" 21 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 22 | 23 | #. (desktop-to-pot) "Name" entry 24 | #: io.liri.Calculator.desktop.in:2 25 | msgctxt "Name entry" 26 | msgid "Liri Calculator" 27 | msgstr "Calcolatrice Liri" 28 | 29 | #. (desktop-to-pot) "GenericName" entry 30 | #: io.liri.Calculator.desktop.in:3 31 | msgctxt "GenericName entry" 32 | msgid "Calculator" 33 | msgstr "Calcolatrice" 34 | 35 | #. (desktop-to-pot) "Comment" entry 36 | #: io.liri.Calculator.desktop.in:4 37 | msgctxt "Comment entry" 38 | msgid "Perform arithmetic and scientific calculations" 39 | msgstr "Esegui calcoli aritmentici e scientifici" 40 | 41 | #. (desktop-to-pot) "Keywords" entry 42 | #: io.liri.Calculator.desktop.in:5 43 | msgctxt "Keywords entry" 44 | msgid "calculation;arithmetic;scientific;" 45 | msgstr "calcolo;aritmentico;scientifico" 46 | -------------------------------------------------------------------------------- /translations/data/desktop/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 PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Moo, 2020 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "PO-Revision-Date: 2020-05-10 16:19+0000\n" 15 | "Last-Translator: Moo, 2020\n" 16 | "Language-Team: Lithuanian (https://www.transifex.com/lirios/teams/71982/lt/)\n" 17 | "MIME-Version: 1.0\n" 18 | "Content-Type: text/plain; charset=UTF-8\n" 19 | "Content-Transfer-Encoding: 8bit\n" 20 | "Language: lt\n" 21 | "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" 22 | 23 | #. (desktop-to-pot) "Name" entry 24 | #: io.liri.Calculator.desktop.in:2 25 | msgctxt "Name entry" 26 | msgid "Liri Calculator" 27 | msgstr "Liri skaičiuotuvas" 28 | 29 | #. (desktop-to-pot) "GenericName" entry 30 | #: io.liri.Calculator.desktop.in:3 31 | msgctxt "GenericName entry" 32 | msgid "Calculator" 33 | msgstr "Skaičiuotuvas" 34 | 35 | #. (desktop-to-pot) "Comment" entry 36 | #: io.liri.Calculator.desktop.in:4 37 | msgctxt "Comment entry" 38 | msgid "Perform arithmetic and scientific calculations" 39 | msgstr "Atlikti aritmetinius ir mokslinius skaičiavimus" 40 | 41 | #. (desktop-to-pot) "Keywords" entry 42 | #: io.liri.Calculator.desktop.in:5 43 | msgctxt "Keywords entry" 44 | msgid "calculation;arithmetic;scientific;" 45 | msgstr "skaičiuotuvas;aritmetinis;mokslinis;" 46 | -------------------------------------------------------------------------------- /translations/data/desktop/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 PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Pier Luigi Fiorini , 2020 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2020-05-15 00:06+0000\n" 15 | "PO-Revision-Date: 2020-05-10 16:19+0000\n" 16 | "Last-Translator: Pier Luigi Fiorini , 2020\n" 17 | "Language-Team: Dutch (https://www.transifex.com/lirios/teams/71982/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\n" 22 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 23 | 24 | #. (desktop-to-pot) Name 25 | #: io.liri.Calculator.desktop.in:2 26 | msgid "Liri Calculator" 27 | msgstr "Liri Rekenmachine" 28 | 29 | #. (desktop-to-pot) GenericName 30 | #: io.liri.Calculator.desktop.in:3 31 | msgid "Calculator" 32 | msgstr "Rekenmachine" 33 | 34 | #. (desktop-to-pot) Comment 35 | #: io.liri.Calculator.desktop.in:4 36 | msgid "Perform arithmetic and scientific calculations" 37 | msgstr "Voer rekenkundige en wetenschappelijke berekeningen uit" 38 | 39 | #. (desktop-to-pot) Keywords 40 | #: io.liri.Calculator.desktop.in:5 41 | msgid "calculation;arithmetic;scientific;" 42 | msgstr "" 43 | -------------------------------------------------------------------------------- /translations/data/desktop/pl.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 PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Pier Luigi Fiorini , 2020 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2020-05-15 00:06+0000\n" 15 | "PO-Revision-Date: 2020-05-10 16:19+0000\n" 16 | "Last-Translator: Pier Luigi Fiorini , 2020\n" 17 | "Language-Team: Polish (https://www.transifex.com/lirios/teams/71982/pl/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: pl\n" 22 | "Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" 23 | 24 | #. (desktop-to-pot) Name 25 | #: io.liri.Calculator.desktop.in:2 26 | msgid "Liri Calculator" 27 | msgstr "Kalkulator Liri" 28 | 29 | #. (desktop-to-pot) GenericName 30 | #: io.liri.Calculator.desktop.in:3 31 | msgid "Calculator" 32 | msgstr "Kalkulator" 33 | 34 | #. (desktop-to-pot) Comment 35 | #: io.liri.Calculator.desktop.in:4 36 | msgid "Perform arithmetic and scientific calculations" 37 | msgstr "Wykonaj obliczenia arytmetyczne i naukowe" 38 | 39 | #. (desktop-to-pot) Keywords 40 | #: io.liri.Calculator.desktop.in:5 41 | msgid "calculation;arithmetic;scientific;" 42 | msgstr "" 43 | -------------------------------------------------------------------------------- /translations/data/desktop/pt_BR.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 PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Luiz Fernando Ranghetti , 2020 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "PO-Revision-Date: 2020-05-10 16:19+0000\n" 15 | "Last-Translator: Luiz Fernando Ranghetti , 2020\n" 16 | "Language-Team: Portuguese (Brazil) (https://www.transifex.com/lirios/teams/71982/pt_BR/)\n" 17 | "MIME-Version: 1.0\n" 18 | "Content-Type: text/plain; charset=UTF-8\n" 19 | "Content-Transfer-Encoding: 8bit\n" 20 | "Language: pt_BR\n" 21 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 22 | 23 | #. (desktop-to-pot) "Name" entry 24 | #: io.liri.Calculator.desktop.in:2 25 | msgctxt "Name entry" 26 | msgid "Liri Calculator" 27 | msgstr "Liri Calculator" 28 | 29 | #. (desktop-to-pot) "GenericName" entry 30 | #: io.liri.Calculator.desktop.in:3 31 | msgctxt "GenericName entry" 32 | msgid "Calculator" 33 | msgstr "Calculadora" 34 | 35 | #. (desktop-to-pot) "Comment" entry 36 | #: io.liri.Calculator.desktop.in:4 37 | msgctxt "Comment entry" 38 | msgid "Perform arithmetic and scientific calculations" 39 | msgstr "Execute cálculos aritméticos e científicos" 40 | 41 | #. (desktop-to-pot) "Keywords" entry 42 | #: io.liri.Calculator.desktop.in:5 43 | msgctxt "Keywords entry" 44 | msgid "calculation;arithmetic;scientific;" 45 | msgstr "cálculo;aritmética;científica;" 46 | -------------------------------------------------------------------------------- /translations/data/desktop/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 PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Irina Fedulova , 2020 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "PO-Revision-Date: 2020-05-10 16:19+0000\n" 15 | "Last-Translator: Irina Fedulova , 2020\n" 16 | "Language-Team: Russian (https://www.transifex.com/lirios/teams/71982/ru/)\n" 17 | "MIME-Version: 1.0\n" 18 | "Content-Type: text/plain; charset=UTF-8\n" 19 | "Content-Transfer-Encoding: 8bit\n" 20 | "Language: ru\n" 21 | "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" 22 | 23 | #. (desktop-to-pot) "Name" entry 24 | #: io.liri.Calculator.desktop.in:2 25 | msgctxt "Name entry" 26 | msgid "Liri Calculator" 27 | msgstr "Калькулятор Liri" 28 | 29 | #. (desktop-to-pot) "GenericName" entry 30 | #: io.liri.Calculator.desktop.in:3 31 | msgctxt "GenericName entry" 32 | msgid "Calculator" 33 | msgstr "Калькулятор" 34 | 35 | #. (desktop-to-pot) "Comment" entry 36 | #: io.liri.Calculator.desktop.in:4 37 | msgctxt "Comment entry" 38 | msgid "Perform arithmetic and scientific calculations" 39 | msgstr "Проведение арифметических и инженерных расчетов" 40 | 41 | #. (desktop-to-pot) "Keywords" entry 42 | #: io.liri.Calculator.desktop.in:5 43 | msgctxt "Keywords entry" 44 | msgid "calculation;arithmetic;scientific;" 45 | msgstr "calculation;arithmetic;scientific;" 46 | -------------------------------------------------------------------------------- /translations/data/desktop/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 PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Emin Tufan Çetin , 2020 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "PO-Revision-Date: 2020-05-10 16:19+0000\n" 15 | "Last-Translator: Emin Tufan Çetin , 2020\n" 16 | "Language-Team: Turkish (https://www.transifex.com/lirios/teams/71982/tr/)\n" 17 | "MIME-Version: 1.0\n" 18 | "Content-Type: text/plain; charset=UTF-8\n" 19 | "Content-Transfer-Encoding: 8bit\n" 20 | "Language: tr\n" 21 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 22 | 23 | #. (desktop-to-pot) "Name" entry 24 | #: io.liri.Calculator.desktop.in:2 25 | msgctxt "Name entry" 26 | msgid "Liri Calculator" 27 | msgstr "Liri Hesap Makinesi" 28 | 29 | #. (desktop-to-pot) "GenericName" entry 30 | #: io.liri.Calculator.desktop.in:3 31 | msgctxt "GenericName entry" 32 | msgid "Calculator" 33 | msgstr "Hesap Makinesi" 34 | 35 | #. (desktop-to-pot) "Comment" entry 36 | #: io.liri.Calculator.desktop.in:4 37 | msgctxt "Comment entry" 38 | msgid "Perform arithmetic and scientific calculations" 39 | msgstr "Aritmetik ve bilimsel hesaplamalar gerçekleştir" 40 | 41 | #. (desktop-to-pot) "Keywords" entry 42 | #: io.liri.Calculator.desktop.in:5 43 | msgctxt "Keywords entry" 44 | msgid "calculation;arithmetic;scientific;" 45 | msgstr "hesaplama;aritmetik;bilimsel;" 46 | -------------------------------------------------------------------------------- /translations/data/desktop/zh_CN.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 PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Jack Works , 2020 8 | # 靑 蔾 , 2021 9 | # 10 | #, fuzzy 11 | msgid "" 12 | msgstr "" 13 | "Project-Id-Version: PACKAGE VERSION\n" 14 | "Report-Msgid-Bugs-To: \n" 15 | "PO-Revision-Date: 2020-05-10 16:19+0000\n" 16 | "Last-Translator: 靑 蔾 , 2021\n" 17 | "Language-Team: Chinese (China) (https://www.transifex.com/lirios/teams/71982/zh_CN/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: zh_CN\n" 22 | "Plural-Forms: nplurals=1; plural=0;\n" 23 | 24 | #. (desktop-to-pot) "Name" entry 25 | #: io.liri.Calculator.desktop.in:2 26 | msgctxt "Name entry" 27 | msgid "Liri Calculator" 28 | msgstr "Liri计算器" 29 | 30 | #. (desktop-to-pot) "GenericName" entry 31 | #: io.liri.Calculator.desktop.in:3 32 | msgctxt "GenericName entry" 33 | msgid "Calculator" 34 | msgstr "计算器" 35 | 36 | #. (desktop-to-pot) "Comment" entry 37 | #: io.liri.Calculator.desktop.in:4 38 | msgctxt "Comment entry" 39 | msgid "Perform arithmetic and scientific calculations" 40 | msgstr "执行算术和科学计算" 41 | 42 | #. (desktop-to-pot) "Keywords" entry 43 | #: io.liri.Calculator.desktop.in:5 44 | msgctxt "Keywords entry" 45 | msgid "calculation;arithmetic;scientific;" 46 | msgstr "" 47 | -------------------------------------------------------------------------------- /translations/data/metainfo/da.po: -------------------------------------------------------------------------------- 1 | # 2 | # Translators: 3 | # scootergrisen, 2020 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: PACKAGE VERSION\n" 8 | "PO-Revision-Date: 2020-05-10 16:26+0000\n" 9 | "Last-Translator: scootergrisen, 2020\n" 10 | "Language-Team: Danish (https://www.transifex.com/lirios/teams/71982/da/)\n" 11 | "MIME-Version: 1.0\n" 12 | "Content-Type: text/plain; charset=UTF-8\n" 13 | "Content-Transfer-Encoding: 8bit\n" 14 | "Language: da\n" 15 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 16 | 17 | #. (itstool) path: component/name 18 | #: data/io.liri.Calculator.appdata.xml.in:5 19 | msgid "Liri Calculator" 20 | msgstr "Liri Lommeregner" 21 | 22 | #. (itstool) path: component/summary 23 | #: data/io.liri.Calculator.appdata.xml.in:6 24 | msgid "Perform arithmetic or scientific calculations" 25 | msgstr "Udfør aritmetiske eller videnskabelige udregninger" 26 | 27 | #. (itstool) path: component/developer_name 28 | #: data/io.liri.Calculator.appdata.xml.in:7 29 | msgid "The Liri developers" 30 | msgstr "Liri-udviklerne" 31 | 32 | #. (itstool) path: description/p 33 | #: data/io.liri.Calculator.appdata.xml.in:11 34 | msgid "" 35 | "Liri Calculator is a Material Design application that solves mathematical " 36 | "equations." 37 | msgstr "" 38 | "Liri Lommeregner er et Material Design-program som løser matematiske " 39 | "ligninger." 40 | 41 | #. (itstool) path: description/p 42 | #: data/io.liri.Calculator.appdata.xml.in:14 43 | msgid "" 44 | "At first it appears to be a simple calculator with only basic arithmetic " 45 | "operations. However it features a flexible expression parser with support " 46 | "for symbolic computation, a large set of built-in functions and constants " 47 | "and works with different data types like numbers, big numbers, complex " 48 | "numbers, fractions, units and matrices." 49 | msgstr "" 50 | "Ved første blik ser det ud til at være en simpel lommeregner, kun med " 51 | "grundlæggende aritmetiske operationer. Men den har en fleksibel " 52 | "udtryksfortolker med understøttelse af symbolske beregninger, et stort sæt " 53 | "indbyggede funktioner og konstanter, og den virker med forskellige datatyper" 54 | " såsom tal, store tal, komplekse tal, brøker, enheder og matricer." 55 | -------------------------------------------------------------------------------- /translations/data/metainfo/de.po: -------------------------------------------------------------------------------- 1 | # 2 | # Translators: 3 | # Ettore Atalan , 2021 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: PACKAGE VERSION\n" 8 | "PO-Revision-Date: 2020-05-10 16:26+0000\n" 9 | "Last-Translator: Ettore Atalan , 2021\n" 10 | "Language-Team: German (https://www.transifex.com/lirios/teams/71982/de/)\n" 11 | "MIME-Version: 1.0\n" 12 | "Content-Type: text/plain; charset=UTF-8\n" 13 | "Content-Transfer-Encoding: 8bit\n" 14 | "Language: de\n" 15 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 16 | 17 | #. (itstool) path: component/name 18 | #: data/io.liri.Calculator.appdata.xml.in:5 19 | msgid "Liri Calculator" 20 | msgstr "Liri Taschenrechner" 21 | 22 | #. (itstool) path: component/summary 23 | #: data/io.liri.Calculator.appdata.xml.in:6 24 | msgid "Perform arithmetic or scientific calculations" 25 | msgstr "Arithmetische oder wissenschaftliche Berechnungen durchführen" 26 | 27 | #. (itstool) path: component/developer_name 28 | #: data/io.liri.Calculator.appdata.xml.in:7 29 | msgid "The Liri developers" 30 | msgstr "Die Liri-Entwickler" 31 | 32 | #. (itstool) path: description/p 33 | #: data/io.liri.Calculator.appdata.xml.in:11 34 | msgid "" 35 | "Liri Calculator is a Material Design application that solves mathematical " 36 | "equations." 37 | msgstr "" 38 | "Liri Taschenrechner ist eine Material-Design-Anwendung, die mathematische " 39 | "Gleichungen löst." 40 | 41 | #. (itstool) path: description/p 42 | #: data/io.liri.Calculator.appdata.xml.in:14 43 | msgid "" 44 | "At first it appears to be a simple calculator with only basic arithmetic " 45 | "operations. However it features a flexible expression parser with support " 46 | "for symbolic computation, a large set of built-in functions and constants " 47 | "and works with different data types like numbers, big numbers, complex " 48 | "numbers, fractions, units and matrices." 49 | msgstr "" 50 | -------------------------------------------------------------------------------- /translations/data/metainfo/it.po: -------------------------------------------------------------------------------- 1 | # 2 | # Translators: 3 | # Man from Mars, 2020 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: PACKAGE VERSION\n" 8 | "PO-Revision-Date: 2020-05-10 16:26+0000\n" 9 | "Last-Translator: Man from Mars, 2020\n" 10 | "Language-Team: Italian (https://www.transifex.com/lirios/teams/71982/it/)\n" 11 | "MIME-Version: 1.0\n" 12 | "Content-Type: text/plain; charset=UTF-8\n" 13 | "Content-Transfer-Encoding: 8bit\n" 14 | "Language: it\n" 15 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 16 | 17 | #. (itstool) path: component/name 18 | #: data/io.liri.Calculator.appdata.xml.in:5 19 | msgid "Liri Calculator" 20 | msgstr "Calcolatrice Liri" 21 | 22 | #. (itstool) path: component/summary 23 | #: data/io.liri.Calculator.appdata.xml.in:6 24 | msgid "Perform arithmetic or scientific calculations" 25 | msgstr "Esegui calcoli aritimentici o scientifici" 26 | 27 | #. (itstool) path: component/developer_name 28 | #: data/io.liri.Calculator.appdata.xml.in:7 29 | msgid "The Liri developers" 30 | msgstr "Gli sviluppatori di Liri" 31 | 32 | #. (itstool) path: description/p 33 | #: data/io.liri.Calculator.appdata.xml.in:11 34 | msgid "" 35 | "Liri Calculator is a Material Design application that solves mathematical " 36 | "equations." 37 | msgstr "" 38 | "La Calcolatrice Liri è un'applicazione in Material Design che risolve " 39 | "equazioni matematiche." 40 | 41 | #. (itstool) path: description/p 42 | #: data/io.liri.Calculator.appdata.xml.in:14 43 | msgid "" 44 | "At first it appears to be a simple calculator with only basic arithmetic " 45 | "operations. However it features a flexible expression parser with support " 46 | "for symbolic computation, a large set of built-in functions and constants " 47 | "and works with different data types like numbers, big numbers, complex " 48 | "numbers, fractions, units and matrices." 49 | msgstr "" 50 | "Sebbene inizialmente sembri una calcolatrice che esegue operazioni " 51 | "aritmentiche di base, utilizza invece un potente interprete di espressioni " 52 | "con supporto per il calcolo simbolico e una vasta libreria di funzioni e " 53 | "costanti già definite. Può operare su tipi di dati diversi come numeri, " 54 | "anche di notevoli dimensioni, frazioni, unità e matrici." 55 | -------------------------------------------------------------------------------- /translations/data/metainfo/lt.po: -------------------------------------------------------------------------------- 1 | # 2 | # Translators: 3 | # Moo, 2020 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: PACKAGE VERSION\n" 8 | "PO-Revision-Date: 2020-05-10 16:26+0000\n" 9 | "Last-Translator: Moo, 2020\n" 10 | "Language-Team: Lithuanian (https://www.transifex.com/lirios/teams/71982/lt/)\n" 11 | "MIME-Version: 1.0\n" 12 | "Content-Type: text/plain; charset=UTF-8\n" 13 | "Content-Transfer-Encoding: 8bit\n" 14 | "Language: lt\n" 15 | "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" 16 | 17 | #. (itstool) path: component/name 18 | #: data/io.liri.Calculator.appdata.xml.in:5 19 | msgid "Liri Calculator" 20 | msgstr "Liri skaičiuotuvas" 21 | 22 | #. (itstool) path: component/summary 23 | #: data/io.liri.Calculator.appdata.xml.in:6 24 | msgid "Perform arithmetic or scientific calculations" 25 | msgstr "Atlikti aritmetinius ar mokslinius skaičiavimus" 26 | 27 | #. (itstool) path: component/developer_name 28 | #: data/io.liri.Calculator.appdata.xml.in:7 29 | msgid "The Liri developers" 30 | msgstr "Liri plėtotojai" 31 | 32 | #. (itstool) path: description/p 33 | #: data/io.liri.Calculator.appdata.xml.in:11 34 | msgid "" 35 | "Liri Calculator is a Material Design application that solves mathematical " 36 | "equations." 37 | msgstr "" 38 | 39 | #. (itstool) path: description/p 40 | #: data/io.liri.Calculator.appdata.xml.in:14 41 | msgid "" 42 | "At first it appears to be a simple calculator with only basic arithmetic " 43 | "operations. However it features a flexible expression parser with support " 44 | "for symbolic computation, a large set of built-in functions and constants " 45 | "and works with different data types like numbers, big numbers, complex " 46 | "numbers, fractions, units and matrices." 47 | msgstr "" 48 | -------------------------------------------------------------------------------- /translations/data/metainfo/metainfo.pot: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Project-Id-Version: PACKAGE VERSION\n" 4 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 5 | "Last-Translator: FULL NAME \n" 6 | "Language-Team: LANGUAGE \n" 7 | "MIME-Version: 1.0\n" 8 | "Content-Type: text/plain; charset=UTF-8\n" 9 | "Content-Transfer-Encoding: 8bit\n" 10 | 11 | #. (itstool) path: component/name 12 | #: data/io.liri.Calculator.appdata.xml.in:5 13 | msgid "Liri Calculator" 14 | msgstr "" 15 | 16 | #. (itstool) path: component/summary 17 | #: data/io.liri.Calculator.appdata.xml.in:6 18 | msgid "Perform arithmetic or scientific calculations" 19 | msgstr "" 20 | 21 | #. (itstool) path: component/developer_name 22 | #: data/io.liri.Calculator.appdata.xml.in:7 23 | msgid "The Liri developers" 24 | msgstr "" 25 | 26 | #. (itstool) path: description/p 27 | #: data/io.liri.Calculator.appdata.xml.in:11 28 | msgid "Liri Calculator is a Material Design application that solves mathematical equations." 29 | msgstr "" 30 | 31 | #. (itstool) path: description/p 32 | #: data/io.liri.Calculator.appdata.xml.in:14 33 | msgid "At first it appears to be a simple calculator with only basic arithmetic operations. However it features a flexible expression parser with support for symbolic computation, a large set of built-in functions and constants and works with different data types like numbers, big numbers, complex numbers, fractions, units and matrices." 34 | msgstr "" 35 | 36 | -------------------------------------------------------------------------------- /translations/data/metainfo/pt_BR.po: -------------------------------------------------------------------------------- 1 | # 2 | # Translators: 3 | # Luiz Fernando Ranghetti , 2020 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: PACKAGE VERSION\n" 8 | "PO-Revision-Date: 2020-05-10 16:26+0000\n" 9 | "Last-Translator: Luiz Fernando Ranghetti , 2020\n" 10 | "Language-Team: Portuguese (Brazil) (https://www.transifex.com/lirios/teams/71982/pt_BR/)\n" 11 | "MIME-Version: 1.0\n" 12 | "Content-Type: text/plain; charset=UTF-8\n" 13 | "Content-Transfer-Encoding: 8bit\n" 14 | "Language: pt_BR\n" 15 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 16 | 17 | #. (itstool) path: component/name 18 | #: data/io.liri.Calculator.appdata.xml.in:5 19 | msgid "Liri Calculator" 20 | msgstr "Liri Calculator" 21 | 22 | #. (itstool) path: component/summary 23 | #: data/io.liri.Calculator.appdata.xml.in:6 24 | msgid "Perform arithmetic or scientific calculations" 25 | msgstr "Execute cálculos aritméticos ou científicos" 26 | 27 | #. (itstool) path: component/developer_name 28 | #: data/io.liri.Calculator.appdata.xml.in:7 29 | msgid "The Liri developers" 30 | msgstr "Os desenvolvedores do Liri" 31 | 32 | #. (itstool) path: description/p 33 | #: data/io.liri.Calculator.appdata.xml.in:11 34 | msgid "" 35 | "Liri Calculator is a Material Design application that solves mathematical " 36 | "equations." 37 | msgstr "" 38 | "O Liri Calculator é um aplicativo Material Design que resolve equações " 39 | "matemáticas." 40 | 41 | #. (itstool) path: description/p 42 | #: data/io.liri.Calculator.appdata.xml.in:14 43 | msgid "" 44 | "At first it appears to be a simple calculator with only basic arithmetic " 45 | "operations. However it features a flexible expression parser with support " 46 | "for symbolic computation, a large set of built-in functions and constants " 47 | "and works with different data types like numbers, big numbers, complex " 48 | "numbers, fractions, units and matrices." 49 | msgstr "" 50 | "A princípio, parece ser uma calculadora simples, com apenas operações " 51 | "aritméticas básicas. No entanto, possui um analisador de expressão flexível " 52 | "com suporte para computação simbólica, um grande conjunto de funções e " 53 | "constantes integradas e trabalha com diferentes tipos de dados como números," 54 | " números grandes, números complexos, frações, unidades e matrizes." 55 | -------------------------------------------------------------------------------- /translations/data/metainfo/ru.po: -------------------------------------------------------------------------------- 1 | # 2 | # Translators: 3 | # Irina Fedulova , 2020 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: PACKAGE VERSION\n" 8 | "PO-Revision-Date: 2020-05-10 16:26+0000\n" 9 | "Last-Translator: Irina Fedulova , 2020\n" 10 | "Language-Team: Russian (https://www.transifex.com/lirios/teams/71982/ru/)\n" 11 | "MIME-Version: 1.0\n" 12 | "Content-Type: text/plain; charset=UTF-8\n" 13 | "Content-Transfer-Encoding: 8bit\n" 14 | "Language: ru\n" 15 | "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" 16 | 17 | #. (itstool) path: component/name 18 | #: data/io.liri.Calculator.appdata.xml.in:5 19 | msgid "Liri Calculator" 20 | msgstr "Калькулятор Liri" 21 | 22 | #. (itstool) path: component/summary 23 | #: data/io.liri.Calculator.appdata.xml.in:6 24 | msgid "Perform arithmetic or scientific calculations" 25 | msgstr "Проведение арифметических и инженерных расчетов" 26 | 27 | #. (itstool) path: component/developer_name 28 | #: data/io.liri.Calculator.appdata.xml.in:7 29 | msgid "The Liri developers" 30 | msgstr "Разработчики Liri" 31 | 32 | #. (itstool) path: description/p 33 | #: data/io.liri.Calculator.appdata.xml.in:11 34 | msgid "" 35 | "Liri Calculator is a Material Design application that solves mathematical " 36 | "equations." 37 | msgstr "" 38 | "Liri Calculator - это приложение в стиле material design, выполняющее " 39 | "математические вычисления." 40 | 41 | #. (itstool) path: description/p 42 | #: data/io.liri.Calculator.appdata.xml.in:14 43 | msgid "" 44 | "At first it appears to be a simple calculator with only basic arithmetic " 45 | "operations. However it features a flexible expression parser with support " 46 | "for symbolic computation, a large set of built-in functions and constants " 47 | "and works with different data types like numbers, big numbers, complex " 48 | "numbers, fractions, units and matrices." 49 | msgstr "" 50 | -------------------------------------------------------------------------------- /translations/data/metainfo/tr.po: -------------------------------------------------------------------------------- 1 | # 2 | # Translators: 3 | # Emin Tufan Çetin , 2020 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: PACKAGE VERSION\n" 8 | "PO-Revision-Date: 2020-05-10 16:26+0000\n" 9 | "Last-Translator: Emin Tufan Çetin , 2020\n" 10 | "Language-Team: Turkish (https://www.transifex.com/lirios/teams/71982/tr/)\n" 11 | "MIME-Version: 1.0\n" 12 | "Content-Type: text/plain; charset=UTF-8\n" 13 | "Content-Transfer-Encoding: 8bit\n" 14 | "Language: tr\n" 15 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 16 | 17 | #. (itstool) path: component/name 18 | #: data/io.liri.Calculator.appdata.xml.in:5 19 | msgid "Liri Calculator" 20 | msgstr "Liri Hesap Makinesi" 21 | 22 | #. (itstool) path: component/summary 23 | #: data/io.liri.Calculator.appdata.xml.in:6 24 | msgid "Perform arithmetic or scientific calculations" 25 | msgstr "Aritmetik ve bilimsel hesaplamalar gerçekleştir" 26 | 27 | #. (itstool) path: component/developer_name 28 | #: data/io.liri.Calculator.appdata.xml.in:7 29 | msgid "The Liri developers" 30 | msgstr "Liri geliştiricileri" 31 | 32 | #. (itstool) path: description/p 33 | #: data/io.liri.Calculator.appdata.xml.in:11 34 | msgid "" 35 | "Liri Calculator is a Material Design application that solves mathematical " 36 | "equations." 37 | msgstr "" 38 | "Liri Hesap Makinesi, matematiksel denklemleri çözen Materyal Tasarımlı " 39 | "uygulamadır." 40 | 41 | #. (itstool) path: description/p 42 | #: data/io.liri.Calculator.appdata.xml.in:14 43 | msgid "" 44 | "At first it appears to be a simple calculator with only basic arithmetic " 45 | "operations. However it features a flexible expression parser with support " 46 | "for symbolic computation, a large set of built-in functions and constants " 47 | "and works with different data types like numbers, big numbers, complex " 48 | "numbers, fractions, units and matrices." 49 | msgstr "" 50 | "İlkin yalnızca basit aritmetik işlemlerini yapabilen basit hesap makinesi " 51 | "olması için tasarlandı. Yine de simgesel hesaplama desteğiyle esnek ifade " 52 | "ayıklayıcı; geniş dahili fonksiyonlar ve sabitler takımı; sayılar, büyük " 53 | "sayılar, kompleks sayılar, kesirler, birimler ve matrisler gibi veri " 54 | "türleriyle çalışma gibi özellikleri barındırır." 55 | -------------------------------------------------------------------------------- /translations/data/metainfo/zh_CN.po: -------------------------------------------------------------------------------- 1 | # 2 | # Translators: 3 | # Jack Works , 2020 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: PACKAGE VERSION\n" 8 | "PO-Revision-Date: 2020-05-10 16:26+0000\n" 9 | "Last-Translator: Jack Works , 2020\n" 10 | "Language-Team: Chinese (China) (https://www.transifex.com/lirios/teams/71982/zh_CN/)\n" 11 | "MIME-Version: 1.0\n" 12 | "Content-Type: text/plain; charset=UTF-8\n" 13 | "Content-Transfer-Encoding: 8bit\n" 14 | "Language: zh_CN\n" 15 | "Plural-Forms: nplurals=1; plural=0;\n" 16 | 17 | #. (itstool) path: component/name 18 | #: data/io.liri.Calculator.appdata.xml.in:5 19 | msgid "Liri Calculator" 20 | msgstr "Liri 计算器" 21 | 22 | #. (itstool) path: component/summary 23 | #: data/io.liri.Calculator.appdata.xml.in:6 24 | msgid "Perform arithmetic or scientific calculations" 25 | msgstr "执行算术和科学计算" 26 | 27 | #. (itstool) path: component/developer_name 28 | #: data/io.liri.Calculator.appdata.xml.in:7 29 | msgid "The Liri developers" 30 | msgstr "Liri 开发者" 31 | 32 | #. (itstool) path: description/p 33 | #: data/io.liri.Calculator.appdata.xml.in:11 34 | msgid "" 35 | "Liri Calculator is a Material Design application that solves mathematical " 36 | "equations." 37 | msgstr "Liri 计算器是一个 Material 设计的,用于解决数学计算的应用程序。" 38 | 39 | #. (itstool) path: description/p 40 | #: data/io.liri.Calculator.appdata.xml.in:14 41 | msgid "" 42 | "At first it appears to be a simple calculator with only basic arithmetic " 43 | "operations. However it features a flexible expression parser with support " 44 | "for symbolic computation, a large set of built-in functions and constants " 45 | "and works with different data types like numbers, big numbers, complex " 46 | "numbers, fractions, units and matrices." 47 | msgstr "" 48 | "初看它仅仅是一个能够进行简单的算数运算的计算器。但它其实带有了灵活的表达式解析器,支持符号计算、自带很多函数和常数,还支持大数计算、复数、分数、单位和矩阵运算。" 49 | -------------------------------------------------------------------------------- /translations/io.liri.Calculator_ar.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Liri Calculator 3 | GenericName=Calculator 4 | Comment=Perform arithmetic and scientific calculations 5 | Keywords=calculation;arithmetic;scientific; 6 | #TRANSLATIONS 7 | Exec=liri-calculator 8 | Icon=io.liri.Calculator 9 | Terminal=false 10 | Type=Application 11 | StartupNotify=true 12 | Categories=X-Liri;Qt;Utility;Calculator; 13 | 14 | 15 | # Translations 16 | Icon[ar]=io.liri.Calculator 17 | Name[ar]=حاسبة ليري 18 | Comment[ar]=إجراء عمليات حسابية و علمية 19 | GenericName[ar]=الحاسبة 20 | -------------------------------------------------------------------------------- /translations/io.liri.Calculator_da.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Liri Calculator 3 | GenericName=Calculator 4 | Comment=Perform arithmetic and scientific calculations 5 | Keywords=calculation;arithmetic;scientific; 6 | #TRANSLATIONS 7 | Exec=liri-calculator 8 | Icon=io.liri.Calculator 9 | Terminal=false 10 | Type=Application 11 | StartupNotify=true 12 | Categories=X-Liri;Qt;Utility;Calculator; 13 | 14 | 15 | # Translations 16 | Icon[da]=io.liri.Calculator 17 | Name[da]=Liri Lommeregner 18 | Comment[da]=Udfør aritmetiske og videnskabelige beregninger 19 | GenericName[da]=Lommeregner 20 | -------------------------------------------------------------------------------- /translations/io.liri.Calculator_fr.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Liri Calculator 3 | GenericName=Calculator 4 | Comment=Perform arithmetic and scientific calculations 5 | Keywords=calculation;arithmetic;scientific; 6 | #TRANSLATIONS 7 | Exec=liri-calculator 8 | Icon=io.liri.Calculator 9 | Terminal=false 10 | Type=Application 11 | StartupNotify=true 12 | Categories=X-Liri;Qt;Utility;Calculator; 13 | 14 | 15 | # Translations 16 | Icon[fr]=io.liri.Calculator 17 | Name[fr]=Calculatrice Liri 18 | Comment[fr]=Effectuer des calculs arithmétiques et scientifiques 19 | GenericName[fr]=Calculatrice 20 | -------------------------------------------------------------------------------- /translations/io.liri.Calculator_lt.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Liri Calculator 3 | GenericName=Calculator 4 | Comment=Perform arithmetic and scientific calculations 5 | Keywords=calculation;arithmetic;scientific; 6 | #TRANSLATIONS 7 | Exec=liri-calculator 8 | Icon=io.liri.Calculator 9 | Terminal=false 10 | Type=Application 11 | StartupNotify=true 12 | Categories=X-Liri;Qt;Utility;Calculator; 13 | 14 | 15 | # Translations 16 | Icon[lt]=io.liri.Calculator 17 | Name[lt]=Liri skaičiuotuvas 18 | Comment[lt]=Atlikti aritmetinius ir mokslinius skaičiavimus 19 | GenericName[lt]=Skaičiuotuvas 20 | -------------------------------------------------------------------------------- /translations/io.liri.Calculator_nl.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Liri Calculator 3 | GenericName=Calculator 4 | Comment=Perform arithmetic and scientific calculations 5 | Keywords=calculation;arithmetic;scientific; 6 | #TRANSLATIONS 7 | Exec=liri-calculator 8 | Icon=io.liri.Calculator 9 | Terminal=false 10 | Type=Application 11 | StartupNotify=true 12 | Categories=X-Liri;Qt;Utility;Calculator; 13 | 14 | 15 | # Translations 16 | Icon[nl]=io.liri.Rekenmachine 17 | Name[nl]=Liri Rekenmachine 18 | Comment[nl]=Voer rekenkundige en wetenschappelijke berekeningen uit 19 | GenericName[nl]=Rekenmachine 20 | -------------------------------------------------------------------------------- /translations/io.liri.Calculator_pl.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Liri Calculator 3 | GenericName=Calculator 4 | Comment=Perform arithmetic and scientific calculations 5 | Keywords=calculation;arithmetic;scientific; 6 | #TRANSLATIONS 7 | Exec=liri-calculator 8 | Icon=io.liri.Calculator 9 | Terminal=false 10 | Type=Application 11 | StartupNotify=true 12 | Categories=X-Liri;Qt;Utility;Calculator; 13 | 14 | 15 | # Translations 16 | Icon[pl]=io.liri.Calculator 17 | Name[pl]=Kalkulator Liri 18 | Comment[pl]=Wykonaj obliczenia arytmetyczne i naukowe 19 | GenericName[pl]=Kalkulator 20 | -------------------------------------------------------------------------------- /translations/io.liri.Calculator_pt_BR.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Liri Calculator 3 | GenericName=Calculator 4 | Comment=Perform arithmetic and scientific calculations 5 | Keywords=calculation;arithmetic;scientific; 6 | #TRANSLATIONS 7 | Exec=liri-calculator 8 | Icon=io.liri.Calculator 9 | Terminal=false 10 | Type=Application 11 | StartupNotify=true 12 | Categories=X-Liri;Qt;Utility;Calculator; 13 | 14 | 15 | # Translations 16 | Icon[pt_BR]=io.liri.Calculator 17 | Name[pt_BR]=Liri Calculator 18 | Comment[pt_BR]=Execute cálculos aritméticos e científicos 19 | GenericName[pt_BR]=Calculadora 20 | -------------------------------------------------------------------------------- /translations/io.liri.Calculator_ru.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Liri Calculator 3 | GenericName=Calculator 4 | Comment=Perform arithmetic and scientific calculations 5 | Keywords=calculation;arithmetic;scientific; 6 | #TRANSLATIONS 7 | Exec=liri-calculator 8 | Icon=io.liri.Calculator 9 | Terminal=false 10 | Type=Application 11 | StartupNotify=true 12 | Categories=X-Liri;Qt;Utility;Calculator; 13 | 14 | 15 | # Translations 16 | Icon[ru]=io.liri.Calculator 17 | Name[ru]=Liri Калькулятор 18 | Comment[ru]=Выполнение арифметических и научных расчетов 19 | GenericName[ru]=Калькулятор 20 | -------------------------------------------------------------------------------- /translations/io.liri.Calculator_tr.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Liri Calculator 3 | GenericName=Calculator 4 | Comment=Perform arithmetic and scientific calculations 5 | Keywords=calculation;arithmetic;scientific; 6 | #TRANSLATIONS 7 | Exec=liri-calculator 8 | Icon=io.liri.Calculator 9 | Terminal=false 10 | Type=Application 11 | StartupNotify=true 12 | Categories=X-Liri;Qt;Utility;Calculator; 13 | 14 | 15 | # Translations 16 | Icon[tr]=io.liri.Calculator 17 | Name[tr]=Liri Hesap Makinesi 18 | Comment[tr]=Aritmetik ve bilimsel hesaplama gerçekleştir 19 | GenericName[tr]=Hesap Makinesi 20 | -------------------------------------------------------------------------------- /translations/io.liri.Calculator_zh_CN.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Liri Calculator 3 | GenericName=Calculator 4 | Comment=Perform arithmetic and scientific calculations 5 | Keywords=calculation;arithmetic;scientific; 6 | #TRANSLATIONS 7 | Exec=liri-calculator 8 | Icon=io.liri.Calculator 9 | Terminal=false 10 | Type=Application 11 | StartupNotify=true 12 | Categories=X-Liri;Qt;Utility;Calculator; 13 | 14 | 15 | # Translations 16 | Icon[zh_CN]=io.liri.Calculator 17 | Name[zh_CN]=Liri计算器 18 | Comment[zh_CN]=执行算术和科学计算 19 | GenericName[zh_CN]=计算器 20 | -------------------------------------------------------------------------------- /translations/liri-calculator.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CalculationLine 6 | 7 | 8 | Error 9 | 10 | 11 | 12 | 13 | CalculationZone 14 | 15 | 16 | Help 17 | 18 | 19 | 20 | 21 | Open file 22 | 23 | 24 | 25 | 26 | Save file 27 | 28 | 29 | 30 | 31 | Advanced mode 32 | 33 | 34 | 35 | 36 | Close advanced mode 37 | 38 | 39 | 40 | 41 | Toggle history 42 | 43 | 44 | 45 | 46 | Toggle expanded 47 | 48 | 49 | 50 | 51 | FileHandler 52 | 53 | 54 | Cannot save: 55 | 56 | 57 | 58 | 59 | Main 60 | 61 | 62 | Discard unsaved? 63 | 64 | 65 | 66 | 67 | saved 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /translations/liri-calculator_ar.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | CalculationLine 4 | 5 | 6 | Error 7 | خطأ 8 | 9 | 10 | 11 | CalculationZone 12 | 13 | 14 | Help 15 | مساعدة 16 | 17 | 18 | 19 | Open file 20 | أفتح ملفًا 21 | 22 | 23 | 24 | Save file 25 | أحفظ الملف 26 | 27 | 28 | 29 | Advanced mode 30 | الوضع المتقدم 31 | 32 | 33 | 34 | Close advanced mode 35 | أغلق الوضع المتقدم 36 | 37 | 38 | 39 | Toggle history 40 | بدّل السجل 41 | 42 | 43 | 44 | Toggle expanded 45 | بدّل التوسيع 46 | 47 | 48 | 49 | FileHandler 50 | 51 | 52 | Cannot save: 53 | لا يمكن حفظ: 54 | 55 | 56 | 57 | Main 58 | 59 | 60 | Discard unsaved? 61 | تجاهل الغير محفوظ؟ 62 | 63 | 64 | 65 | saved 66 | حُفظ 67 | 68 | 69 | -------------------------------------------------------------------------------- /translations/liri-calculator_da.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | CalculationLine 4 | 5 | 6 | Error 7 | Fejl 8 | 9 | 10 | 11 | CalculationZone 12 | 13 | 14 | Help 15 | Hjælp 16 | 17 | 18 | 19 | Open file 20 | Åbn fil 21 | 22 | 23 | 24 | Save file 25 | Gem fil 26 | 27 | 28 | 29 | Advanced mode 30 | Avanceret tilstand 31 | 32 | 33 | 34 | Close advanced mode 35 | Luk avanceret tilstand 36 | 37 | 38 | 39 | Toggle history 40 | Historik til/fra 41 | 42 | 43 | 44 | Toggle expanded 45 | Udviddet til/fra 46 | 47 | 48 | 49 | FileHandler 50 | 51 | 52 | Cannot save: 53 | Kan ikke gemme: 54 | 55 | 56 | 57 | Main 58 | 59 | 60 | Discard unsaved? 61 | Forkast ændringer som ikke er blevet gemt? 62 | 63 | 64 | 65 | saved 66 | gemt 67 | 68 | 69 | -------------------------------------------------------------------------------- /translations/liri-calculator_de.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | CalculationLine 4 | 5 | 6 | Error 7 | Fehler 8 | 9 | 10 | 11 | CalculationZone 12 | 13 | 14 | Help 15 | Hilfe 16 | 17 | 18 | 19 | Open file 20 | Datei öffnen 21 | 22 | 23 | 24 | Save file 25 | Datei speichern 26 | 27 | 28 | 29 | Advanced mode 30 | Erweiterter Modus 31 | 32 | 33 | 34 | Close advanced mode 35 | Erweiterten Modus schließen 36 | 37 | 38 | 39 | Toggle history 40 | Verlauf umschalten 41 | 42 | 43 | 44 | Toggle expanded 45 | 46 | 47 | 48 | 49 | FileHandler 50 | 51 | 52 | Cannot save: 53 | Kann nicht speichern: 54 | 55 | 56 | 57 | Main 58 | 59 | 60 | Discard unsaved? 61 | Ungespeichertes verwerfen? 62 | 63 | 64 | 65 | saved 66 | gespeichert 67 | 68 | 69 | -------------------------------------------------------------------------------- /translations/liri-calculator_fr.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | CalculationLine 4 | 5 | 6 | Error 7 | Erreur 8 | 9 | 10 | 11 | CalculationZone 12 | 13 | 14 | Help 15 | Aide 16 | 17 | 18 | 19 | Open file 20 | Ouvrir un fichier 21 | 22 | 23 | 24 | Save file 25 | Sauvegarder un fichier 26 | 27 | 28 | 29 | Advanced mode 30 | Mode avancé 31 | 32 | 33 | 34 | Close advanced mode 35 | Fermer le mode avancé 36 | 37 | 38 | 39 | Toggle history 40 | Voir l'historique 41 | 42 | 43 | 44 | Toggle expanded 45 | Étendre 46 | 47 | 48 | 49 | FileHandler 50 | 51 | 52 | Cannot save: 53 | Impossible de sauvegarder : 54 | 55 | 56 | 57 | Main 58 | 59 | 60 | Discard unsaved? 61 | Supprimer les modifications non enregistrées ? 62 | 63 | 64 | 65 | saved 66 | sauvegardé 67 | 68 | 69 | -------------------------------------------------------------------------------- /translations/liri-calculator_it.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | CalculationLine 4 | 5 | 6 | Error 7 | Errore 8 | 9 | 10 | 11 | CalculationZone 12 | 13 | 14 | Help 15 | Aiuto 16 | 17 | 18 | 19 | Open file 20 | Apri file 21 | 22 | 23 | 24 | Save file 25 | Salva file 26 | 27 | 28 | 29 | Advanced mode 30 | Modalità avanzata 31 | 32 | 33 | 34 | Close advanced mode 35 | Chiudi modalità avanzata 36 | 37 | 38 | 39 | Toggle history 40 | Attiva/disattiva cronologia 41 | 42 | 43 | 44 | Toggle expanded 45 | Attiva/disattiva vista espansa 46 | 47 | 48 | 49 | FileHandler 50 | 51 | 52 | Cannot save: 53 | Impossibile salvare: 54 | 55 | 56 | 57 | Main 58 | 59 | 60 | Discard unsaved? 61 | Chiudere senza salvare? 62 | 63 | 64 | 65 | saved 66 | salvato 67 | 68 | 69 | -------------------------------------------------------------------------------- /translations/liri-calculator_lt.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | CalculationLine 4 | 5 | 6 | Error 7 | Klaida 8 | 9 | 10 | 11 | CalculationZone 12 | 13 | 14 | Help 15 | Pagalba 16 | 17 | 18 | 19 | Open file 20 | Atverti failą 21 | 22 | 23 | 24 | Save file 25 | Įrašyti failą 26 | 27 | 28 | 29 | Advanced mode 30 | Išplėstinė veiksena 31 | 32 | 33 | 34 | Close advanced mode 35 | Užverti išplėstinę veikseną 36 | 37 | 38 | 39 | Toggle history 40 | Perjungti istoriją 41 | 42 | 43 | 44 | Toggle expanded 45 | Perjungti išplėstą 46 | 47 | 48 | 49 | FileHandler 50 | 51 | 52 | Cannot save: 53 | Nepavyksta įrašyti: 54 | 55 | 56 | 57 | Main 58 | 59 | 60 | Discard unsaved? 61 | Atmesti neįrašytus? 62 | 63 | 64 | 65 | saved 66 | įrašyta 67 | 68 | 69 | -------------------------------------------------------------------------------- /translations/liri-calculator_nl.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | CalculationLine 4 | 5 | 6 | Error 7 | Error 8 | 9 | 10 | 11 | CalculationZone 12 | 13 | 14 | Help 15 | Hulp 16 | 17 | 18 | 19 | Open file 20 | Open bestand 21 | 22 | 23 | 24 | Save file 25 | Bestand opslaan 26 | 27 | 28 | 29 | Advanced mode 30 | Geavanceerde modus 31 | 32 | 33 | 34 | Close advanced mode 35 | Verlaat geavanceerde modus 36 | 37 | 38 | 39 | Toggle history 40 | Schakel geschiedenis 41 | 42 | 43 | 44 | Toggle expanded 45 | Schakel uitgebreid 46 | 47 | 48 | 49 | FileHandler 50 | 51 | 52 | Cannot save: 53 | Kan niet opslaan: 54 | 55 | 56 | 57 | Main 58 | 59 | 60 | Discard unsaved? 61 | Wat niet is opgeslagen verwerpen? 62 | 63 | 64 | 65 | saved 66 | Opgeslagen 67 | 68 | 69 | -------------------------------------------------------------------------------- /translations/liri-calculator_pl.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | CalculationLine 4 | 5 | 6 | Error 7 | Błąd 8 | 9 | 10 | 11 | CalculationZone 12 | 13 | 14 | Help 15 | Pomoc 16 | 17 | 18 | 19 | Open file 20 | Otwórz plik 21 | 22 | 23 | 24 | Save file 25 | Zapisz plik 26 | 27 | 28 | 29 | Advanced mode 30 | Tryb zaawansowany 31 | 32 | 33 | 34 | Close advanced mode 35 | Zamknij tryb zaawansowany 36 | 37 | 38 | 39 | Toggle history 40 | Przełącz historię 41 | 42 | 43 | 44 | Toggle expanded 45 | Przełącz rozszerzone 46 | 47 | 48 | 49 | FileHandler 50 | 51 | 52 | Cannot save: 53 | Nie można zapisać: 54 | 55 | 56 | 57 | Main 58 | 59 | 60 | Discard unsaved? 61 | Odrzucić niezapisane? 62 | 63 | 64 | 65 | saved 66 | zapisany 67 | 68 | 69 | -------------------------------------------------------------------------------- /translations/liri-calculator_pt_BR.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | CalculationLine 4 | 5 | 6 | Error 7 | Erro 8 | 9 | 10 | 11 | CalculationZone 12 | 13 | 14 | Help 15 | Ajuda 16 | 17 | 18 | 19 | Open file 20 | Abrir arquivo 21 | 22 | 23 | 24 | Save file 25 | Salvar arquivo 26 | 27 | 28 | 29 | Advanced mode 30 | Modo avançado 31 | 32 | 33 | 34 | Close advanced mode 35 | Fechar modo avançado 36 | 37 | 38 | 39 | Toggle history 40 | Alternar histórico 41 | 42 | 43 | 44 | Toggle expanded 45 | Alternar expandido 46 | 47 | 48 | 49 | FileHandler 50 | 51 | 52 | Cannot save: 53 | Não foi possível salvar 54 | 55 | 56 | 57 | Main 58 | 59 | 60 | Discard unsaved? 61 | Descartar não salvo? 62 | 63 | 64 | 65 | saved 66 | salvo 67 | 68 | 69 | -------------------------------------------------------------------------------- /translations/liri-calculator_ru.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | CalculationLine 4 | 5 | 6 | Error 7 | Ошибка 8 | 9 | 10 | 11 | CalculationZone 12 | 13 | 14 | Help 15 | Помощь 16 | 17 | 18 | 19 | Open file 20 | Открыть файл 21 | 22 | 23 | 24 | Save file 25 | Сохранить файл 26 | 27 | 28 | 29 | Advanced mode 30 | Расширенный режим 31 | 32 | 33 | 34 | Close advanced mode 35 | Закрыть расширенный режим 36 | 37 | 38 | 39 | Toggle history 40 | Переключить историю 41 | 42 | 43 | 44 | Toggle expanded 45 | Поменять увеличение 46 | 47 | 48 | 49 | FileHandler 50 | 51 | 52 | Cannot save: 53 | Не удается сохранить: 54 | 55 | 56 | 57 | Main 58 | 59 | 60 | Discard unsaved? 61 | Сбросить несохраненные? 62 | 63 | 64 | 65 | saved 66 | сохранено 67 | 68 | 69 | -------------------------------------------------------------------------------- /translations/liri-calculator_tr.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | CalculationLine 4 | 5 | 6 | Error 7 | Hata 8 | 9 | 10 | 11 | CalculationZone 12 | 13 | 14 | Help 15 | Yardım 16 | 17 | 18 | 19 | Open file 20 | Dosya aç 21 | 22 | 23 | 24 | Save file 25 | Dosyayı kaydet 26 | 27 | 28 | 29 | Advanced mode 30 | Gelişmiş kip 31 | 32 | 33 | 34 | Close advanced mode 35 | Gelişmiş kipi kapat 36 | 37 | 38 | 39 | Toggle history 40 | Geçmişi aç/kapat 41 | 42 | 43 | 44 | Toggle expanded 45 | Genişletilmişi aç/kapat 46 | 47 | 48 | 49 | FileHandler 50 | 51 | 52 | Cannot save: 53 | Kaydedilemedi: 54 | 55 | 56 | 57 | Main 58 | 59 | 60 | Discard unsaved? 61 | Kaydedilmemişi göz ardı et? 62 | 63 | 64 | 65 | saved 66 | kaydedildi 67 | 68 | 69 | -------------------------------------------------------------------------------- /translations/liri-calculator_zh_CN.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | CalculationLine 4 | 5 | 6 | Error 7 | 错误 8 | 9 | 10 | 11 | CalculationZone 12 | 13 | 14 | Help 15 | 帮助 16 | 17 | 18 | 19 | Open file 20 | 打开文件 21 | 22 | 23 | 24 | Save file 25 | 保存文件 26 | 27 | 28 | 29 | Advanced mode 30 | 高级模式 31 | 32 | 33 | 34 | Close advanced mode 35 | 关闭高级模式 36 | 37 | 38 | 39 | Toggle history 40 | 历史 41 | 42 | 43 | 44 | Toggle expanded 45 | 扩展 46 | 47 | 48 | 49 | FileHandler 50 | 51 | 52 | Cannot save: 53 | 无法保存: 54 | 55 | 56 | 57 | Main 58 | 59 | 60 | Discard unsaved? 61 | 放弃保存? 62 | 63 | 64 | 65 | saved 66 | 已保存 67 | 68 | 69 | --------------------------------------------------------------------------------