UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Bug report #3132 "update_po_from_wiki.sh" can't do update
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Bug report
  • Category
    General
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    4. Useful
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (1)
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Complexity
    Not determined
  • Platform
    Not determined
  • Architecture
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/bugs/3132 Item 3132] imported from sourceforge.net tracker on 2013-01-28 20:02:17

The script wrong working for me. Last time I use it, then all "*_pre_txt" placeholders was replaced at "TODO" descriptions. And no updates not doing.
Sorry, if this a known bug.
log-file added.
===== Comments Ported from Sourceforge =====

====== balasar (2012-02-05 19:37:15) ======


====== geever (2012-02-06 20:21:33) ======

Known issue. Itis possible that we won't fix this but migrate to another translation method,

-geever
====== balasar (2012-02-06 20:32:08) ======

What other method? When? You can concretely about this?
====== tlh2000 (2012-02-07 06:53:19) ======

I don't think that we can switch to a new method for 2.4 - at least not if it depends on my work only. I don't have the time yet to do this.

I've assigned this to Kracken in the hope that he might have a look at it and fix the script so that we can use it for 2.4.
====== balasar (2012-02-14 11:08:06) ======

@Mattn‎
I tried a little work to understand the script, but it proved difficult.
Have you any docs or flowcharts about algorithm of this? I think maybe something wrong with the creation of the file Language_List_*.
====== tlh2000 (2012-02-14 11:38:05) ======

I'm sorry, there is no docu - it's all in Kracken's head.
====== balasar (2012-02-15 21:06:08) ======

@Mattn
Uu-h. I found a mistake. It is in the wrong creating the file Language_List_* (row N 429 in script). Maybe something has changed in the formation of html-code in wiki. Since the script is looking for a long strings with a list of available languages (<th> msgid </ th> <th> status </ th> <th> en (source) </ th> <th> de </ th> <th> fr </ th> <th>...), but now as the list begins each new line.
<th> msgid </ th>
<th> status </ th>
<th> en (source) </ th>
<th> de </ th>
....
So, AWK-command can&#039;t find this template.
I do not know how to fix it right - or script, or wiki. I think it is easy to fix?
====== kracken (2012-02-15 21:29:55) ======

Hi (glad to read you ;)),

The wiki changed a lot since I wrote this script. Therefore, I&#039;m not surprised that errors occur when running it (basically, I&#039;m even surprised you can run it at all).
When I wrote the script, all languages was on the same wiki url, that was why I needed this file Language_List_*. Now that there is one url for each language, maybe it&#039;s not needed anymore ?

I can try to have a deeper look this week-end if it can help you .

Kracken

====== balasar (2012-02-15 21:51:12) ======

Hi, Kracken. Thank you for having responded.
So it would be great if you repair script. Last 2 days I tried to understand this algorithm and studied the bash-commands :).
I think I found the cause of erroneous execution.
Of course, now you can reduce the code to implement the synchronization of the wiki. This will help us all.
====== kracken (2012-02-18 20:58:59) ======

this should fix the mentionned bug
====== kracken (2012-02-18 21:04:19) ======

Hi,

Could you please try the attached file to see if it works fine?
The problem was exactly what you said (this is not the first time that some modification in the wiki mess up my script). I didn&#039;t know how to fix that in awk, so I rewrote the part of the script in bash.

I can&#039;t commit modification, so if this fix is fine with you, please commit it.
====== balasar (2012-02-19 00:08:24) ======

Thx. I&#039;m very pleased. I checked - it works. But I also can&#039;t commit modification.
Added new patch on tracker and close this reporting.
Steps to reproduce this issue
Nothing entered.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif