• 0

    posted a message on I think I broke it!
    I'm not sure if the powers that be did anything, but it seems fine now...
    Posted in: Need Help?
  • 0

    posted a message on Repository keyword substitutions with localization
    Quote from Xinhuan
    Don't forget to surround the code with GetLocale() checks.


    I have thanks, I just didn't want to post more than I needed here ;)
    Posted in: Need Help?
  • 0

    posted a message on I think I broke it!
    Sorry, but I'm at a loss, I think it was the way I edited the localization database, but I now get this whenever I try and upload a new revision...



    • Error occurred in thread Checkout <Local SvnRepository: wow/holdem/mainline> tag v3.3.1: Traceback (most recent call last):
    • File "packager/utils.py", line 189, in run
      File "packager/repository.py", line 224, in _checkout_tag_full
      File "packager/repository.py", line 302, in get_externals
      File "packager/utils.py", line 441, in newFunc
      File "packager/repository.py", line 297, in __get_externals
      File "packager/repository.py", line 141, in get_repository
      ProgrammingError: (ProgrammingError) relation "pages_revision" does not exist
      'SELECT projects_project.id AS projects_project_id, projects_project.game_id AS projects_project_game_id, projects_project.license_id AS projects_project_license_id, projects_project.default_image_id AS projects_project_default_image_id, projects_project.site_id AS projects_project_site_id, projects_project.mainline_repository_id AS projects_project_mainline_repository_id, projects_project.primary_category_id AS projects_project_primary_category_id, projects_project.name AS projects_project_name, projects_project.slug AS projects_project_slug, projects_project.change_date AS projects_project_change_date, projects_project.post_date AS projects_project_post_date, projects_project.last_file_date AS projects_project_last_file_date, projects_project.status AS projects_project_status, projects_project.status_note AS projects_project_status_note, projects_project.stage AS projects_project_stage, projects_project.comments_on AS projects_project_comments_on, projects_project.curse_comments_on AS projects_project_curse_comments_on, projects_project.bugtracker_on AS projects_project_bugtracker_on, projects_project.closed_source AS projects_project_closed_source, projects_project.clonability AS projects_project_clonability, projects_project.external_ticket_url AS projects_project_external_ticket_url, projects_project.donation_info AS projects_project_donation_info, (SELECT pages_revision.markup \nFROM pages_revision, pages_page \nWHERE pages_page.id = pages_revision.page_id AND pages_page.slug = %(slug_1)s AND pages_page.related_type_id = %(related_type_id_1)s AND pages_page.related_id = projects_project.id AND pages_page.last_revision_id = pages_revision.id) AS cache_description, array((SELECT projects_project_categories.category_id \nFROM projects_project_categories \nWHERE projects_project.id = projects_project_categories.project_id)) AS cache_secondary_category_ids, array((SELECT projects_project_localized_languages.language_id \nFROM projects_project_localized_languages \nWHERE projects_project.id = projects_project_localized_languages.project_id)) AS cache_localized_language_ids \nFROM projects_project \nWHERE projects_project.id = %(param_1)s' {'related_type_id_1': 12, 'slug_1': 'main', 'param_1': 14328}
    Any thoughts please?
    Posted in: Need Help?
  • 0

    posted a message on Repository keyword substitutions with localization
    Excellent, thanks for such a quick response
    Posted in: Need Help?
  • 0

    posted a message on Repository keyword substitutions with localization
    Hi,

    I'm trying to drag in the localization data for various languages as below
    MyLocalization = setmetatable(
    
    --@localization(locale="deDE", format="lua_table", handle-unlocalized="english", escape-non-ascii="true")@
    
    ,{__index = function(self, key) -- line 8
            rawset(self, key, key)
            return key
        end }
    
    )
    However, the svn commit rejects this with
    Commit failed (details follow):
    Error: 'pre-commit' hook failed with error output:  
    Error: trunk/localization.deDE.lua has a syntax error:  
    Error: luac: stdin:8: unexpected symbol near ','  
    Now I know the substitution is exactly what I want for that space and works when put in manually, so I am guessing something in the parser isn't checking both together...

    Can anyone help with a suggestion on how to fix that doesn't use an Ace lib plz?

    Cheers
    Posted in: Need Help?
  • To post a comment, please or register a new account.