1. 09 Jul, 2018 1 commit
    • Eli Schwartz's avatar
      Fix regression in translating anything at all · c8d99bac
      Eli Schwartz authored and Lukas Fleischer's avatar Lukas Fleischer committed
      In commit 840ee20f
      
       (Rename translation resources from aur to aurweb,
      2018-07-07) the translations file was renamed but we never actually
      switched to using the renamed translations.
      
      As a result, every single push to the AUR contains the following
      traceback:
      
          remote: Traceback (most recent call last):
          remote:   File "/usr/bin/aurweb-notify", line 11, in <module>
          remote:     load_entry_point('aurweb==4.7.0', 'console_scripts', 'aurweb-notify')()
          remote:   File "/usr/lib/python3.6/site-packages/aurweb-4.7.0-py3.6.egg/aurweb/scripts/notify.py", line 541, in main
          remote:   File "/usr/lib/python3.6/site-packages/aurweb-4.7.0-py3.6.egg/aurweb/scripts/notify.py", line 69, in send
          remote:   File "/usr/lib/python3.6/site-packages/aurweb-4.7.0-py3.6.egg/aurweb/scripts/notify.py", line 56, in get_body_fmt
          remote:   File "/usr/lib/python3.6/site-packages/aurweb-4.7.0-py3.6.egg/aurweb/scripts/notify.py", line 192, in get_body
          remote:   File "/usr/lib/python3.6/site-packages/aurweb-4.7.0-py3.6.egg/aurweb/l10n.py", line 14, in translate
          remote:   File "/usr/lib/python3.6/gettext.py", line 514, in translation
          remote:     raise OSError(ENOENT, 'No translation file found for domain', domain)
          remote: FileNotFoundError: [Errno 2] No translation file found for domain: 'aur'
      
      Signed-off-by: Eli Schwartz's avatarEli Schwartz <eschwartz@archlinux.org>
      Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
      c8d99bac
  2. 27 Feb, 2017 1 commit
    • Lukas Fleischer's avatar
      Fix SQL query to retrieve language setting · c557f348
      Lukas Fleischer authored
      In commit e171f6f3
      
       (Migrate all DB code to use PDO, 2012-08-08),
      PDOStatement::fetchAll() was introduced as a drop-in replacement for
      mysql_fetch_array(). However, PDOStatement::fetchAll() returns a list of
      all results while mysql_fetch_array() returns a single result only.
      Instead of adding the missing indirection, simplify the code by using
      PDO::fetchColumn().
      
      Also add some safeguards to prevent warnings if the result set returned
      by the query is empty.
      
      Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
      c557f348
  3. 10 Nov, 2016 1 commit
  4. 27 Jun, 2015 1 commit
  5. 09 Jun, 2015 2 commits
  6. 08 Jun, 2015 1 commit
  7. 24 Oct, 2014 1 commit
  8. 04 Jul, 2014 1 commit
  9. 13 May, 2014 1 commit
  10. 26 Aug, 2013 1 commit
  11. 10 Feb, 2013 1 commit
  12. 22 Dec, 2012 1 commit
  13. 24 Sep, 2012 1 commit
  14. 17 Sep, 2012 1 commit
    • canyonknight's avatar
      Migrate all DB code to use PDO · e171f6f3
      canyonknight authored
      
      
      All DB code currently uses the quickly aging mysql_* functions. These
      functions are strongly discouraged and may eventually be deprecated.
      
      Transition all code to utilize the PDO data access abstraction layer. PDO
      allows for consistent query code across multiple databases. This could
      potentially allow for someone to use a database other than MySQL with
      minimal code changes.
      
      All functions and behaviors are reproduced as faithfully as possible with
      PDO equivalents and some changes in code.
      
      Signed-off-by: default avatarcanyonknight <canyonknight@gmail.com>
      Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
      e171f6f3
  15. 24 Oct, 2011 1 commit
  16. 20 Aug, 2011 1 commit
  17. 22 Jun, 2011 1 commit
  18. 10 Apr, 2011 2 commits
  19. 09 Jan, 2010 2 commits
  20. 08 Jan, 2010 1 commit
  21. 25 Jun, 2009 1 commit
  22. 13 Apr, 2009 1 commit
  23. 19 Jan, 2009 1 commit
  24. 21 Dec, 2008 1 commit
  25. 17 Dec, 2008 1 commit
  26. 28 Jul, 2008 1 commit
  27. 22 Jul, 2008 1 commit
    • Loui Chang's avatar
      Add a new DEFAULT_LANG constant. · 1a1a6eb3
      Loui Chang authored
      
      
      DEFAULT_LANG will essentially be used to specify what language
      strings are initially written in.
      
      This will eliminate the need for English translation arrays in
      AUR and make adding or changing the English strings a lot easier.
      
      DEFAULT_LANG may be required for strings to display properly.
      
      Also change the output when a translation isn't found.
      Eliminate the <b> which can cause validation errors depending
      on where the string is placed.
      
      Signed-off-by: default avatarLoui Chang <louipc.ist@gmail.com>
      1a1a6eb3
  28. 17 Jun, 2008 1 commit
  29. 27 Mar, 2008 1 commit
  30. 20 Sep, 2007 1 commit
  31. 16 Aug, 2007 1 commit
  32. 11 Jun, 2005 1 commit
  33. 19 Jun, 2004 1 commit
  34. 18 Jun, 2004 2 commits
  35. 14 Jun, 2004 1 commit