Ignore:
Timestamp:
28 Feb 2012, 19:34:51 (13 years ago)
Author:
Henrik Bettermann
Message:

Internationalize hostels package.

Remove exception catcher in switchReservations and corresponding test.

When testing the hostel configuration manually I found out that the beds_reserved list attribute of halls
only changed during the lifetime of a running instance. After restarting the portal all changes were gone.
Also "hostel._p_changed = True" didn't help. The only solution was to reassign the attribute to ensure persistance.

Unfortunately, the current tests don't catch such a malfunction. This has to be improved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/locales/ha/LC_MESSAGES/waeup.sirp.po

    r7717 r7718  
    1515msgstr ""
    1616"Project-Id-Version: WAeUP.SIRP\n"
    17 "POT-Creation-Date: Tue Feb 28 12:37:24 2012\n"
     17"POT-Creation-Date: Tue Feb 28 18:06:20 2012\n"
    1818"PO-Revision-Date: 2012-02-22 11:28+0100\n"
    1919"Last-Translator: Henrik Bettermann <henrik@waeup.org>\n"
     
    9595#: waeup/sirp/browser/pages.py:1502 waeup/sirp/browser/pages.py:1555
    9696#: waeup/sirp/browser/pages.py:1698 waeup/sirp/browser/pages.py:1749
    97 #: waeup/sirp/browser/pages.py:1770
     97#: waeup/sirp/browser/pages.py:1770 waeup/sirp/hostels/browser.py:209
     98#: waeup/sirp/hostels/browser.py:231 waeup/sirp/hostels/browser.py:317
    9899msgid "Save"
    99100msgstr ""
     
    111112#: waeup/sirp/browser/pages.py:1379 waeup/sirp/browser/pages.py:1701
    112113#: waeup/sirp/browser/pages.py:1773 waeup/sirp/browser/pages.py:1885
     114#: waeup/sirp/hostels/browser.py:54
    113115msgid "Form has been saved."
    114116msgstr ""
     
    226228#: waeup/sirp/browser/pages.py:1259 waeup/sirp/browser/pages.py:1270
    227229#: waeup/sirp/browser/pages.py:1336 waeup/sirp/browser/pages.py:1371
     230#: waeup/sirp/hostels/browser.py:131
    228231msgid "Remove selected"
    229232msgstr ""
     
    807810msgstr ""
    808811
    809 #: waeup/sirp/browser/pages.py:113
     812#: waeup/sirp/browser/pages.py:113 waeup/sirp/hostels/browser.py:256
     813#: waeup/sirp/hostels/browser.py:285
    810814msgid "No item selected."
    811815msgstr ""
     
    10101014msgstr ""
    10111015
    1012 #: waeup/sirp/browser/pages.py:387
     1016#: waeup/sirp/browser/pages.py:387 waeup/sirp/hostels/browser.py:195
    10131017msgid "Manage"
    10141018msgstr ""
     
    13611365#: waeup/sirp/applicants/browser_templates/applicantscontainermanagepage.pt:112
    13621366#: waeup/sirp/applicants/browser_templates/applicantsrootmanagepage.pt:58
     1367#: waeup/sirp/hostels/browser_templates/containerpage.pt:10
     1368#: waeup/sirp/hostels/browser_templates/containermanagepage.pt:11
    13631369msgid "Name"
    13641370msgstr ""
     
    13941400
    13951401#: waeup/sirp/browser/templates/facultypage.pt:1
     1402#: waeup/sirp/hostels/browser_templates/containerpage.pt:1
    13961403msgid "There no subobjects registered yet."
    13971404msgstr ""
     
    14521459
    14531460#: waeup/sirp/browser/templates/searchpage.pt:15
     1461#: waeup/sirp/hostels/browser_templates/hostelmanagepage.pt:54
    14541462msgid "Type"
    14551463msgstr ""
     
    15671575msgstr ""
    15681576
    1569 #: waeup/sirp/hostels/browser.py:67
     1577#: waeup/sirp/hostels/browser.py:105
     1578msgid "Accommodation Section"
     1579msgstr ""
     1580
     1581#: waeup/sirp/hostels/browser.py:113 waeup/sirp/hostels/browser.py:123
     1582msgid "Manage accommodation section"
     1583msgstr ""
     1584
     1585#: waeup/sirp/hostels/browser.py:145 waeup/sirp/hostels/browser.py:158
     1586msgid "Add hostel"
     1587msgstr ""
     1588
     1589#: waeup/sirp/hostels/browser.py:161
     1590msgid "Create hostel"
     1591msgstr ""
     1592
     1593#: waeup/sirp/hostels/browser.py:170
     1594msgid "The hostel already exists."
     1595msgstr ""
     1596
     1597#: waeup/sirp/hostels/browser.py:172
     1598msgid "Hostel created."
     1599msgstr ""
     1600
     1601#: waeup/sirp/hostels/browser.py:207
     1602msgid "Manage hostel"
     1603msgstr ""
     1604
     1605#: waeup/sirp/hostels/browser.py:210 waeup/sirp/hostels/browser.py:236
     1606msgid "Update all beds"
     1607msgstr ""
     1608
     1609#: waeup/sirp/hostels/browser.py:211 waeup/sirp/hostels/browser.py:250
     1610msgid "Switch reservation of selected beds"
     1611msgstr ""
     1612
     1613#: waeup/sirp/hostels/browser.py:212 waeup/sirp/hostels/browser.py:279
     1614msgid "Release selected beds"
     1615msgstr ""
     1616
     1617#. Default: ""
     1618#: waeup/sirp/hostels/browser.py:241
     1619msgid ""
     1620"${a} empty beds removed, ${b} beds added, ${c} occupied beds modified (${d})"
     1621msgstr ""
     1622
     1623#. Default: ""
     1624#: waeup/sirp/hostels/browser.py:273
     1625msgid "Successfully switched beds: ${a}"
     1626msgstr ""
     1627
     1628#. Default: ""
     1629#: waeup/sirp/hostels/browser.py:297
     1630msgid "Successfully released beds: ${a}"
     1631msgstr ""
     1632
     1633#: waeup/sirp/hostels/browser.py:302
     1634msgid "No allocated bed selected."
     1635msgstr ""
     1636
     1637#: waeup/sirp/hostels/browser.py:314
     1638msgid "Allocate student"
     1639msgstr ""
     1640
     1641#: waeup/sirp/hostels/browser.py:68 waeup/sirp/hostels/browser.py:78
    15701642msgid "Hostels"
     1643msgstr ""
     1644
     1645#. Default: ""
     1646#: waeup/sirp/hostels/browser.py:95
     1647msgid "Block ${a}, Room ${b}, Bed ${c}"
     1648msgstr ""
     1649
     1650#: waeup/sirp/hostels/browser_templates/containerpage.pt:9
     1651#: waeup/sirp/hostels/browser_templates/containermanagepage.pt:9
     1652#: waeup/sirp/hostels/browser_templates/hostelmanagepage.pt:53
     1653msgid "Id"
     1654msgstr ""
     1655
     1656#: waeup/sirp/hostels/browser_templates/hostelmanagepage.pt:55
     1657msgid "Number"
     1658msgstr ""
     1659
     1660#: waeup/sirp/hostels/browser_templates/hostelmanagepage.pt:56
     1661msgid "Owner"
     1662msgstr ""
     1663
     1664#: waeup/sirp/hostels/browser_templates/hostelmanagepage.pt:6
     1665msgid "Hostel Data"
     1666msgstr ""
     1667
     1668#: waeup/sirp/hostels/browser_templates/hostelmanagepage.pt:74
     1669msgid "[allocate student]"
     1670msgstr ""
     1671
     1672#: waeup/sirp/hostels/browser_templates/hostelmanagepage.pt:9
     1673msgid "Beds"
     1674msgstr ""
     1675
     1676#: waeup/sirp/hostels/hostel.py:163
     1677msgid "unreserved"
     1678msgstr ""
     1679
     1680#: waeup/sirp/hostels/hostel.py:176
     1681msgid "reserved"
     1682msgstr ""
     1683
     1684#: waeup/sirp/hostels/interfaces.py:105
     1685msgid "Beds for Returning Students"
     1686msgstr ""
     1687
     1688#: waeup/sirp/hostels/interfaces.py:112
     1689msgid "Beds for Final Year Students"
     1690msgstr ""
     1691
     1692#: waeup/sirp/hostels/interfaces.py:119
     1693msgid "Beds without category"
     1694msgstr ""
     1695
     1696#: waeup/sirp/hostels/interfaces.py:126
     1697msgid "Special Handling"
     1698msgstr ""
     1699
     1700#: waeup/sirp/hostels/interfaces.py:137
     1701msgid "Female and male blocks overlap."
     1702msgstr ""
     1703
     1704#: waeup/sirp/hostels/interfaces.py:146
     1705msgid "Bed categories overlap."
     1706msgstr ""
     1707
     1708#: waeup/sirp/hostels/interfaces.py:169
     1709msgid "Bed Id"
     1710msgstr ""
     1711
     1712#: waeup/sirp/hostels/interfaces.py:175
     1713msgid "Bed Type"
     1714msgstr ""
     1715
     1716#: waeup/sirp/hostels/interfaces.py:181
     1717msgid "Bed Number"
     1718msgstr ""
     1719
     1720#: waeup/sirp/hostels/interfaces.py:186 waeup/sirp/hostels/interfaces.py:199
     1721msgid "Owner (Student)"
     1722msgstr ""
     1723
     1724#: waeup/sirp/hostels/interfaces.py:44
     1725msgid "Hostel Id"
     1726msgstr ""
     1727
     1728#: waeup/sirp/hostels/interfaces.py:49
     1729msgid "Sort Id"
     1730msgstr ""
     1731
     1732#: waeup/sirp/hostels/interfaces.py:55
     1733msgid "Hostel Name"
     1734msgstr ""
     1735
     1736#: waeup/sirp/hostels/interfaces.py:61
     1737msgid "Floors per Block"
     1738msgstr ""
     1739
     1740#: waeup/sirp/hostels/interfaces.py:67
     1741msgid "Rooms per Floor"
     1742msgstr ""
     1743
     1744#: waeup/sirp/hostels/interfaces.py:73
     1745msgid "Reserved Beds"
     1746msgstr ""
     1747
     1748#: waeup/sirp/hostels/interfaces.py:84
     1749msgid "Blocks for Female Students"
     1750msgstr ""
     1751
     1752#: waeup/sirp/hostels/interfaces.py:91
     1753msgid "Blocks for Male Students"
     1754msgstr ""
     1755
     1756#: waeup/sirp/hostels/interfaces.py:98
     1757msgid "Beds for Fresh Students"
     1758msgstr ""
     1759
     1760#: waeup/sirp/hostels/vocabularies.py:57
     1761msgid "Bed A"
     1762msgstr ""
     1763
     1764#: waeup/sirp/hostels/vocabularies.py:58
     1765msgid "Bed B"
     1766msgstr ""
     1767
     1768#: waeup/sirp/hostels/vocabularies.py:59
     1769msgid "Bed C"
     1770msgstr ""
     1771
     1772#: waeup/sirp/hostels/vocabularies.py:60
     1773msgid "Bed D"
     1774msgstr ""
     1775
     1776#: waeup/sirp/hostels/vocabularies.py:61
     1777msgid "Bed E"
     1778msgstr ""
     1779
     1780#: waeup/sirp/hostels/vocabularies.py:62
     1781msgid "Bed F"
     1782msgstr ""
     1783
     1784#: waeup/sirp/hostels/vocabularies.py:63
     1785msgid "Bed G"
     1786msgstr ""
     1787
     1788#: waeup/sirp/hostels/vocabularies.py:64
     1789msgid "Bed H"
     1790msgstr ""
     1791
     1792#: waeup/sirp/hostels/vocabularies.py:65
     1793msgid "Bed I"
     1794msgstr ""
     1795
     1796#: waeup/sirp/hostels/vocabularies.py:69
     1797msgid "Block A"
     1798msgstr ""
     1799
     1800#: waeup/sirp/hostels/vocabularies.py:70
     1801msgid "Block B"
     1802msgstr ""
     1803
     1804#: waeup/sirp/hostels/vocabularies.py:71
     1805msgid "Block C"
     1806msgstr ""
     1807
     1808#: waeup/sirp/hostels/vocabularies.py:72
     1809msgid "Block D"
     1810msgstr ""
     1811
     1812#: waeup/sirp/hostels/vocabularies.py:73
     1813msgid "Block E"
     1814msgstr ""
     1815
     1816#: waeup/sirp/hostels/vocabularies.py:74
     1817msgid "Block F"
     1818msgstr ""
     1819
     1820#: waeup/sirp/hostels/vocabularies.py:75
     1821msgid "Block G"
     1822msgstr ""
     1823
     1824#: waeup/sirp/hostels/vocabularies.py:76
     1825msgid "Block H"
     1826msgstr ""
     1827
     1828#: waeup/sirp/hostels/vocabularies.py:77
     1829msgid "Block I"
     1830msgstr ""
     1831
     1832#: waeup/sirp/hostels/vocabularies.py:78
     1833msgid "Block K"
     1834msgstr ""
     1835
     1836#: waeup/sirp/hostels/vocabularies.py:79
     1837msgid "Block L"
     1838msgstr ""
     1839
     1840#: waeup/sirp/hostels/vocabularies.py:80
     1841msgid "Block M"
     1842msgstr ""
     1843
     1844#: waeup/sirp/hostels/vocabularies.py:81
     1845msgid "Block N"
     1846msgstr ""
     1847
     1848#: waeup/sirp/hostels/vocabularies.py:82
     1849msgid "Block O"
     1850msgstr ""
     1851
     1852#: waeup/sirp/hostels/vocabularies.py:83
     1853msgid "Block P"
     1854msgstr ""
     1855
     1856#: waeup/sirp/hostels/vocabularies.py:87
     1857msgid "Regular Hostel"
     1858msgstr ""
     1859
     1860#: waeup/sirp/hostels/vocabularies.py:88
     1861msgid "Blocked Hostel"
     1862msgstr ""
     1863
     1864#: waeup/sirp/hostels/vocabularies.py:89
     1865msgid "Postgraduate Hostel"
    15711866msgstr ""
    15721867
Note: See TracChangeset for help on using the changeset viewer.