2 things (again)

FtCG in other languages
With FtCG ready for other wikis, we need to prepare for non-english users using this. So I suggest that we get other versions, in other languages.
I will prepare it for localisation. The native .NET localisation system requires Visual C# installed, since you have to compile a DLL file. I might look at concocitng an INI-based system, or something similar, which should be easier on localisers. — This, that, and the other (talk) 21:45, 7 January 2012 (UTC)
How to get it for Windows Vista (found only for 7). ~~Ebe123~~ → report on my contribs. 22:55, 7 January 2012 (UTC)
Don't worry about getting Visual C#. I'll code an alternative translation scheme that doesn't require using VCS. — This, that, and the other (talk) 01:02, 8 January 2012 (UTC)
Good. Thanks. Ebe123 on the go! (talk) 01:07, 8 January 2012 (UTC)
Extra Space
In Potential Problems, there is extra space. It would be good to remove it as red space is unpleasant. ~~Ebe123~~ → report on my contribs. 19:01, 7 January 2012 (UTC)
It's meant to be unpleasant and eye-catching - after all it is a warning. — This, that, and the other (talk) 21:45, 7 January 2012 (UTC)
The warnings have extra space that could be used for other things.(HotCat) The NowCommons warning has too much weight on it. ~~Ebe123~~ → report on my contribs. 22:53, 7 January 2012 (UTC)
I would put any HotCat-like feature above the preview-box, making the local wikitext box smaller (this box very rarely scrolls vertically on my screen). The warning box needs to be that big to fit two warnings at once (if this ever happens; for example File:Thegirlwiththedragontattoo.jpg). — This, that, and the other (talk) 00:57, 8 January 2012 (UTC)
I might be able to translate into German - but we should get then something like a translation system in (it is enough if it is stored in ini files!) mabdul 21:19, 7 January 2012 (UTC)
I would translate to French (fr), and Cajun French (frc). ~~Ebe123~~ → report on my contribs. 22:53, 7 January 2012 (UTC)

Date cleanup

A low-priority request: Change any (unambiguous!) date value in Date= to ISO form. I could probably write regexes for this if you want. I probably need to write them anyway if I ever get around to using meta:User:Pathoschild/Scripts/Regex_menu_framework again. Only for dates that cannot be interpreted more than one way, of course. --Closeapple (talk) 08:39, 8 January 2012 (UTC)

Real names

This is an even lower-prority request, since it doesn't happen very often and is probably not necessary. I've noticed that a few users put their real names in place of their usernames. It may be useful to carry this into {{PD-user-w}} (since {{PD-user}} doesn't understand alternate name parameters) or whatever other template is appropriate for the given licensing. For example, if a PD-self image has Information lines like these:

|Author=[[User:SomeUsernameX|Some Other Name Y]]
|Author=[[User:Some User Name W|Real Name Z]] ([[User talk:Some User Name W|talk]]) 23:36, 30 July 2008 (UTC)

I would like to see license tags like this:

{{PD-user-w|project=w|language=en|user=SomeUsernameX|realname=Some Other Name Y}}
{{PD-user-w|project=w|language=en|user=Some User Name W|realname=Real Name Z}}

If the alternate name contains wikimarkup or anything "cute" other than straightforward text, it should probably be treated like it didn't exist, and fall back to the usual way. ({{PD-user-w}} has a shorter form without parameter names, but documentation says the explicit way is "recommended".) --Closeapple (talk) 08:39, 8 January 2012 (UTC)

I would like this too. I've seen the problem before, but how would it detect names? ~~Ebe123~~ → report on my contribs. 12:19, 8 January 2012 (UTC)
Fairly straightforward. See if some regex like /\|\s*Author\s*=\s*\[\[User:([^]|{}\\/<>:]*[^]|{}\\/<>: ])\s*|\s*([^]|{}\\/<>:]+)\s*\]\]/i (at least that would be the Perl version) matches; if it does, it's probably an alternate name, not a decoration, so see if captures 1 and 2 from that regex (which should be the username and display name) match each other; if they do, the username is just repeated; if they don't match, there's a different name that displays, so use it. (If one wants to really make sure only the most blatantly boring versions get the "real name" treatment, with no funny business at all, then the regex can be changed to allow only normal Latin alphabet characters and a few punctuation characters we know are allowed.)

Impressions on other wiki moving

I have moved a file on kowiki (Korean Wikipedia), and here's what I think about the handeling on other wikis.

  1. No intelligent handeling of text.
    Info template moved aside, and had to start from scratch.
  2. Logging doesn't regonize
    Is like the others, so it's hard to see from what wiki. Why not adding "(wikiname)" at the end, replacing wikiname by the wiki.

So now, here's some definitions for Korean.

Templates
  • Now Commons -> 공용중복
  • Information -> 그림 정보
    • Description -> 설명
    • Source -> 출처
    • Date -> 날짜
    • Other -> 기타
    • Author -> 만든이
    • Permission -> 저작권
Headers
  • 파일의 설명 -> Summary
  • 저작권 -> Licensing:
Names
  • File: -> 파일:

~~Ebe123~~ → report on my contribs. 13:33, 8 January 2012 (UTC)

I, too, think that it would be useful to have a mapping from template names on other wikis to template names on Commons. Commons Helper tries to do this, but sometimes fails (e.g. {{Information}} on Japanese Wikipedia isn't recognised as the Commons variant with the same name). While talking about other wiki projects, on Japanese Wikipedia you're asked to substitute a template onto the talk pages of all uploaders informing them that the image has been moved to Commons. Maybe the tool should offer this.
For the logging problem, I suggest that you do one of the following:
  1. Start FTCG from the command line:
    cd enwiki
    ..\ftcg.exe

    - or -
    cd kowiki
    ..\ftcg.exe
  2. Create two copies of the program (in different directories) and start the tool by double-clicking on an icon in the default GUI.
In both cases, the tool would create two separate config files (so that you won't have to change project URLs or user names) and two separate log files (so that you will be able to tell the projects apart). --Stefan2 (talk) 16:20, 8 January 2012 (UTC)
I do not have Visual C#. But I think that it will be fixed when translations come by. ~~Ebe123~~ → report on my contribs. 17:01, 8 January 2012 (UTC)

Version 1.0.3.1

Available at http://atlight.github.com as usual. Some of the new, exciting, etc. features:

  • Use on other wikis, as requested by Ebe123
    • It tends to munge the Commons wikitext a bit (it doesn't know about foreign-language headers and templates) - but it works, largely
    • If using on another wiki, please set up a redirect on that wiki from "Template:Now Commons" to whatever the local "now-commons" template is - even something like {{delete|Image has been transferred to Commons at {{{1|the same name}}}}} should suffice
  • New setting to stop FtCG saving your password to disk, as requested by several users
  • Slightly improved handling/intelligence
  • Fixed bug with extra line breaks in copy/paste
  • New UI font, suitable for high-DPI systems (if using Windows XP "large font" scheme or similar, consider changing to DPI scaling)

Thanks for all the feedback (this was the first time I've ever set up an archive bot!); I feel this project is beginning to wind down. However, if you have any more suggestions, please do tell me - I'm not going away! Bulwersator, if you still want source, please say soThis, that, and the other (talk) 10:30, 7 January 2012 (UTC)

  • Yes, I want to get rid of comments around categories Bulwersator (talk) 12:20, 7 January 2012 (UTC)

Some comments about the support for other wikis:

  1. It may be a bad idea to limit FTCG to .org wiki projects. Anyone can use mw:InstantCommons on any MediaWiki wiki project and if any external wiki hosts an image eligible for Commons (free, in scope etc.), it could in principle be moved there. I would assume that the tool also could be used for moving eligible images to Commons because people want to use them on Wikipedia or any other project (similar to the Flickr importation tools). I suggest that you move .org to the text box so that external wiki users aren't locked out (although I guess that this mainly will be used for Wikimedia projects, which all use .org).
    • AFAIK FtCG will only work on Wikimedia projects, since it logs in via CentralAuth (the login system that operates SUL). I am not active on any non-Wikimedia projects, so this is way down my to-do list. — This, that, and the other (talk) 06:15, 9 January 2012 (UTC)
  2. You currently tag images using {{Now Commons}}, but few other wiki projects support that tag. It may be better to use {{NowCommons}} (no space) which is supported on most Wikimedia projects. --Stefan2 (talk) 23:51, 7 January 2012 (UTC)

More on other wikis

While at itwiki (Italian Wikipedia), I've found some more things. The categories do not work. Also, as it isn't nessesarily the "your local wiki", how about replacing it by the "LocalDomain" preference.

Now about the empty category box;
"That category contains no files. Perhaps you misspelt it... or perhaps the backlog is finally clear :)" could be re-worded to "The selected category contains no files. There are two reasons why this appears, it does not exist, or that no files are in the category." This sounds more professional.

~~Ebe123~~ → report on my contribs. 16:36, 8 January 2012 (UTC)

I have a sense of humour (sort of), so FtCG does too - you're welcome to change that in your French translation, of course, but I like my silly little humorous messages.
I made it say "your local wiki" to give the link in the bottom-right more clickable area. I think using the LocalDomain preference is a good idea, and I will do that. — This, that, and the other (talk) 04:00, 9 January 2012 (UTC)

More

Warnings:
"Image is already on Commons; can't do anything" should be "File is on the Wikimedia Commons." It's simple and good.

Translations:
Wiki templates and such should be seperate than the translations of the tool. This is so that if a italian user goes to kowiki, it would not become korean. (My two other wikis for this is the italian Wikipedia and the Korean Wikipedia). ~~Ebe123~~ → report on my contribs. 21:43, 8 January 2012 (UTC)

I would disagree with using "File is on the Wikimedia Commons." — That could be interpreted as meaning that the user moved the file and the warning isn't really a warning; or it could mean that the move failed because it matches an existing file. (There are lots of other computer programs that are buggy and sometimes show "alert" messages for things that are actually successful.) It should at least say "File is already on Wikimedia Commons." or "This file name already exists on Wikimedia Commons." If "can't do anything" sounds too hopeless, then maybe the message should be "Check original and Commons pages manually." --Closeapple (talk) 02:27, 9 January 2012 (UTC)
I'm happy with the error messages as they are. They're clear enough.
I am working on the wiki templates idea. Note that this data is already stored for CommonsHelper2 under subpages of meta:CommonsHelper2, so that info can be used to construct "local wiki data" for FtCG. (I considered having FtCG download that data on-the-fly, but it's in a bad format.) — This, that, and the other (talk) 04:03, 9 January 2012 (UTC)

Local wiki data

See User:This, that and the other/For the Common Good/Local wiki data. The idea is to have a local wiki data file for any wiki you want to use with FtCG. Even though 1.0.4 is not done, this format is ready for eager folk (like Ebe123) to start taking a look.

Having said that, the format is not set in stone (yet); if you have any suggestions or queries, don't hesitate to ask. — This, that, and the other (talk) 06:49, 9 January 2012 (UTC)

  • I think that it requires also listing local category name ("Kategoria" on plwiki etc) Bulwersator (talk) 07:19, 9 January 2012 (UTC)

If you do finish a local wiki data file, please e-mail it to me so I can put it up on the github website. (Or alternative you could post it on-wiki for people to copy and paste, but don't forget that it can be hard for non-tech-savvy Windows users to change file extensions, so it's generally easier to provide the file for download with the correct extension.) — This, that, and the other (talk) 09:31, 9 January 2012 (UTC)

Orphan image tag

Minor request: The wording of {{Orphan image}} on en.wiki asks that it be replaced with {{Now Commons}} once the move is completed. It looks like one of the tags that should be yanked at the same time as the {{Move to Commons}} tags. --Closeapple (talk) 06:07, 10 January 2012 (UTC)

It is removed, or at least it should be... — This, that, and the other (talk) 07:05, 10 January 2012 (UTC)
Oh, I see what you mean. It will be added in 1.0.4, which will appear very soon. — This, that, and the other (talk) 09:27, 10 January 2012 (UTC)

Version 1.0.4

Version 1.0.4 is available, with (hopefully) full support for localization (user interface in other languages) and use on other wikis (through "local wiki data" files). There isn't really much new stuff for users who want to stay rooted on enwiki, so I won't release it through auto-update. But of course it can be obtained at http://atlight.github.com as usual.

I have other things to do now (for a few weeks), so I will have limited time to work on this tool. Please e-mail me (using the "E-mail this user" link on the left) if you find any important bugs. However, even though I won't be doing much general tinkering, I'll check this talk page from time to time. Thanks for all your wonderful feedback over the past two-and-a-half weeks. — This, that, and the other (talk) 10:57, 10 January 2012 (UTC)

I tried out the localisation file feature by starting to create one for Japanese Wikipedia. On that project, users are asked to include a template on all of the uploaders' talk pages, but the tool doesn't offer this feature. Would it be possible to add this feature? This notice includes the file names on Japanese Wikipedia and on Commons. --Stefan2 (talk) 01:24, 11 January 2012 (UTC)
I can certainly see the benefit of doing this, but no time to code it at the moment. — This, that, and the other (talk) 06:08, 11 January 2012 (UTC)
Why isn't the korean wikipedia shown? It is at github. ~~Ebe123~~ → report on my contribs. 10:21, 11 January 2012 (UTC)

headlines again

Hi TT&TO, check the file (if not already deleted) File:Stovepipe Wells store.jpg. It had already a headline called == Description ==, but the FtCG added == {{int:filedesc}} == without removing the old one. Can you check if it is there and then replace it with the latter one? Thanks. mabdul 14:29, 11 January 2012 (UTC)

In the case that it has been deleted, here's the text:
Code.

== Description ==
{{Information
|Description= Stovepipe Wells Store at dusk
|Source=self-made
|Date=Sept 10,2007
|Location=Stovepipe Wells / Death Valley
|Author=[[User:Philpierre|Philippe Pierre]] ([[User talk:Philpierre|talk]])
|Permission=
|other_versions=
}}
== Licensing ==
{{self|cc-by-3.0}}

{{Now Commons|File:Stovepipe Wells store.jpg|date=2012-01-11}}
Hmm, I've never seen the "description" heading before. I'll keep this in mind - it's trivial to detect it. — This, that, and the other (talk) 00:13, 12 January 2012 (UTC)
It's trivial, but useful. I added a second, less used header in the french. ~~Ebe123~~ → report on my contribs. 00:15, 12 January 2012 (UTC)

...and localisation

Language files allow the user interface of FtCG to be translated to other languages.

I have posted a language file template at http://atlight.github.com/ftcg/en/ForTheCommonGood.lang. FtCG 1.0.4 will read files only with this name, so don't change the file name.

I also know some French, so I have been using an incomplete French translation as a test. It is at http://atlight.github.com/ftcg/fr/ForTheCommonGood.lang; it may be a good starting point, though certainly not finished! If you speak French, you'll probably laugh at some of the translations. — This, that, and the other (talk) 00:34, 10 January 2012 (UTC)

What about the Korean code I gave? ~~Ebe123~~ → report on my contribs. 00:53, 10 January 2012 (UTC)
Misunderstood. Proof-reading the french file. French is my first language, before english. ~~Ebe123~~ → report on my contribs. 01:02, 10 January 2012 (UTC)
Fais attention aux anglicismes! Ce n'est pas du franglais qu'on veut. Aussi, soyez à l'aise d'aller au wiktionaire (wikt:fr:). ~~Ebe123~~ → report on my contribs. 01:19, 10 January 2012 (UTC)
Going to hand it in tomorrow. ~~Ebe123~~ → report on my contribs. 01:25, 10 January 2012 (UTC)
Oui, j'ai essayé d'éviter les anglicismes, mais je savais que vous alliez corriger mon franglais ! (J'aime le Wiktionnaire en français : il parait même que j'y ai fait quelques contributions.)
Also, in the language file, please remove the lines with the category names (near the top). I put those there before I worked out the "local wiki data" feature. So you can delete them; FtCG doesn't use them. — This, that, and the other (talk) 05:01, 10 January 2012 (UTC)

Where to upload the German file? Should I send it per mail? If so, send me a mail then you get the file. Or should I include it here? mabdul 17:04, 12 January 2012 (UTC)

If you want, I can upload to github for TTO to add. You may also post by mail or post it here. ~~Ebe123~~ → report on my contribs. 20:03, 12 January 2012 (UTC)
Send it in the body of a Wikipedia e-mail if you like, or post it here. — This, that, and the other (talk) 00:42, 13 January 2012 (UTC)

{{self}}

I'm having a bit of trouble with the {{self}} template in the localisation file: if someone uses {{Information|Permission={{tlx|self|GDFL}}}}, I get {{self|GFDL|Author=[[:ja:User:Username|]]}} but the template requires {{self|GFDL|author=<nowiki>[[:ja:User:Username|]]}}</nowiki> and a capital A makes the template credit the image to me instead. This is what it is trying to replace

[SelfLicenseReplacement]
LookFor={{self([^\}]*)}}
ReplaceWith={{self$1|author=[[%%InterwikiLinkPrefix%%:User:%%OriginalUploader%%|]]}}

i.e. with lowercase "a". Any ideas?

It works fine if {{self}} is placed outside the {{Information}} template. --Stefan2 (talk) 11:32, 11 January 2012 (UTC)

Ah... it thinks "author=" is a parameter to {{information}}. I'll try to fix this. — This, that, and the other (talk) 00:14, 12 January 2012 (UTC)
Hmm... the best way to fix this for the moment would be to replace the line "Author=Author" with complete gibberish, like "Author=fuerwhfihbvihewiubhfvuiwebfiewhbiuvbwfiuewf". This should fix it for the moment. — This, that, and the other (talk) 01:35, 16 January 2012 (UTC)

Mono error

Irrelevant to 99% of users: I'm trying FTCG in Mono as hinted to in the documentation. I've written preliminary instructions at User:Closeapple/new/Wikipedia:FTCG on Mono. But I've hit an error I can't get past yet, which I've given at User:Closeapple/new/Wikipedia:FTCG on Mono#The error. This may be interesting to anyone on Linux, BSD, MacOS, etc. --Closeapple (talk) 06:15, 14 January 2012 (UTC)

I'm getting all kinds of problems when trying to run For the Common Good under Linux. The error messages differ from version to version, but all versions of the tool have given me some kind or problem. As far as I know, there are three ways to run the tool under Linux:
  1. Native Mono
  2. Windows Mono under Wine
  3. Windows .NET Framework under Wine
Option 1 fails for me because Mono doesn't seem to be set up to support graphical programs. Option 2 fails because Mono doesn't support SSL. Option 3 fails because Wine/.NET Framework doesn't recognise keyboard keys which don't return printable characters (e.g. arrow keys, backspace or shortcuts for copying & pasting), although it is possible to edit the file information page and move files to Commons. Since Windows came pre-installed on my computer when I bought it, I have found it easier to just reboot into Windows, but if you find a way to run the tool without any problems under Linux, it would still be nice to know. I assume that it would be possible to set up Mono to support graphical user interfaces and/or SSL, but I assume that I would still be stuck at your error, so I see little point in trying to fix my problems. For installing Windows Mono and .NET Framework, use "winetricks mono28" and "winetricks dotnet30", respectively. Also make sure to install Mono and .NET Framework under different Wine prefixes. Also note that you must have a valid licence for any of Windows 98, Windows ME, Windows NT 4.0 (desktop edition), Windows 2000 and Windows XP Professional/Home in order to use .NET Framework legally, although you don't need to have Windows installed. I personally have licences for some of those operative systems somewhere, and it would probably be quite cheap to buy a Windows 98 licence on Ebay or a similar place. --Stefan2 (talk) 10:44, 15 January 2012 (UTC)
The next version of FtCG will allow you to disable HTTPS... perhaps this will help you. However, my networking code is really dodgy - it just manages to work under .NET 2.0, and it won't work at all under .NET 4.0. There's a chance it won't work on Mono either. — This, that, and the other (talk) 01:34, 16 January 2012 (UTC)

{{en=

Even though {{en= already exists in the description, FtCG still adds this to the description field. ~FeedintmParley 00:24, 16 January 2012 (UTC)

{{en= is wrong, and won't display correctly on enwiki or commons. The correct syntax is {{en|1= or {{en|, both of which should be detected correctly by FtCG. — This, that, and the other (talk) 00:44, 16 January 2012 (UTC)
Sorry, I meant {{en|1= (typed it wrong). For some reason, it didn't detect it. ~FeedintmParley 00:50, 16 January 2012 (UTC)
What was the filename? — This, that, and the other (talk) 01:37, 16 January 2012 (UTC)
File:1990USCensusLogo.svg ~FeedintmParley 01:49, 16 January 2012 (UTC)
I have asked the deleting admin if I could retrieve the wikitext of the deleted file. (here)This, that, and the other (talk) 08:30, 16 January 2012 (UTC)

Disclaimer

FTCG converted a template incorrectly. English Wikipedia had {{GFDL-self-with-disclaimers}} and this became {{GFDL-user|Elkman|en-with-disclaimers|migration=relicense}} although it should have been {{GFDL-user-en-with-disclaimers|Elkman|migration=relicense}}. See example here. --Stefan2 (talk) 19:12, 15 January 2012 (UTC)

Works perfectly for me. You might have mentioned that you use a custom local wiki data file, so check that the entry for GFDL-self-with-disclaimers (under SelfLicenseReplacement) comes before the general GFDL-self one. — This, that, and the other (talk) 00:44, 16 January 2012 (UTC)
Works for me too, but if to be changed, we would have to change:
[SelfLicenseReplacement]
LookFor={{GFDL-self-with-disclaimers([^\}]*)}}
ReplaceWith={{GFDL-user-en-with-disclaimers|%%OriginalUploader%%$1}}

[SelfLicenseReplacement]
LookFor={{GFDL-self([^\}]*)}}
ReplaceWith={{GFDL-user|%%OriginalUploader%%|en$1}}
on en.wikipedia.wiki. ~~Ebe123~~ → report on my contribs. 00:57, 16 January 2012 (UTC)
The file was moved from English Wikipedia, so I used the standard built-in wiki data definition. Custom definitions are only used if I'm working on a different Wikimedia project. --Stefan2 (talk) 19:00, 16 January 2012 (UTC)

Example of problem page: File:Dehradun_India_2006-11.JPG

File information page

Attribution (to conform with licence requirements): User:Lennonrodgers, User:Cydebot, User:DrilBot and User:Fbot

<nowiki>== Summary ==
Photographer: Lennon Rodgers
Location: Dehradun, India
Date: Spring 2006
Copyright: Lennon Rodgers, 2006

== New version coming soon ==

I apologise for the lack of action here; I will try to prepare and upload a new version tomorrow. It will be available on http://atlight.github.com, which will obviously not be affected by the blackout. 

If the blackout becomes too much to handle, you could always start up FtCG and do a bit of transferring. Of course, tagging with {{tlf|now Commons}} will fail, but you can ask FtCG to keep a log for you, and tag them later. Just a thought :) — <span style="border:dashed #666;border-width:1px 0 0 1px">[[User:This, that and the other|This, that]]</span>, and <span style="border:dashed #666;border-width:0 1px 1px 0">[[User talk:This, that and the other|the other<small> (talk)</small>]]</span> 11:27, 17 January 2012 (UTC)
:What will be the new features?  Or is it just for the bugs?  ~~[[User:Ebe123|<span style="text-shadow:#9e6d3f 2px 2px 1px; color:#21421E; font-weight:bold;">Ebe</span><span style="color:#000000">123</span>]]~~ → <small>[[User talk:Ebe123|report]] on my [[Special:Contributions/Ebe123|contribs]].</small> 11:29, 17 January 2012 (UTC)
::Alternatively, move images from other projects, since they will remain available. I was thinking of switching over to Japanese Wikipedia. --[[User:Stefan2|Stefan2]] ([[User talk:Stefan2|talk]]) 22:01, 17 January 2012 (UTC)
::Just minor stuff, Ebe123. — <span style="border:dashed #666;border-width:1px 0 0 1px">[[User:This, that and the other|This, that]]</span>, and <span style="border:dashed #666;border-width:0 1px 1px 0">[[User talk:This, that and the other|the other<small> (talk)</small>]]</span> 00:06, 18 January 2012 (UTC)

== Error message ==

I got this error message when I tried to view the EXIF metadata for [[:File:Interval-Inversions-Triads-Inversions.tif]]. Do you have any idea of what's wrong?
{{Collapse top}}
<pre>Information om att aktivera JIT-felsökning i stället för den 
här dialogrutan finns i slutet av det här meddelandet.

************** Undantagstext **************
System.NullReferenceException: Objektreferensen har inte angetts till en instans av ett objekt.
   vid ForTheCommonGood.frmMain.ViewExifData(Object sender, EventArgs e)
   vid System.Windows.Forms.Control.OnClick(EventArgs e)
   vid System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   vid System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   vid System.Windows.Forms.Control.WndProc(Message& m)
   vid System.Windows.Forms.ButtonBase.WndProc(Message& m)
   vid System.Windows.Forms.Button.WndProc(Message& m)
   vid System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   vid System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Inlästa sammansättningar **************
mscorlib
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.4963 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
ForTheCommonGood
    Sammansättningsversion: 1.0.4.0
    Win32-version: 1.0.4
    CodeBase: file:///C:/Users/stefan/ftcg/ForTheCommonGood_1.0.4.exe
----------------------------------------
System.Windows.Forms
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.4961 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.4962 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Accessibility
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Xml
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
mscorlib.resources
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.4963 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
System.Configuration
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Windows.Forms.resources
    Sammansättningsversion: 2.0.0.0
    Win32-version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_sv_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** JIT-felsökning **************
För att aktivera JIT-felsökning (just-in-time ) måste .config-filen för
det här tillämpningsprogrammet eller datorn (machine.config) ha 
jitDebugging-värdet angivet i avsnittet system.windows.forms.
Tillämpningsprogrammet måste också vara kompilerat
med felsökning aktiverat.

Till exempel:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

När JIT-felsökning är aktiverad kommer alla undantag som inte
hanteras att skickas till JIT-felsökaren som är registrerad på
datorn snarare än att hanteras av den här dialogrutan.

Stefan2 (talk) 22:00, 17 January 2012 (UTC)

File text:
File text:
{{now Commons|File:Interval-Inversions-Triads-Inversions.tif|date=2012-01-17}}== Summary ==
{{Information
| Description    = Interval-Inversions-Triads-Inversions
| Source         = Created by [[User:Prophet of the Most High|Prophet of the Most High]] ([[User talk:Prophet of the Most High|talk]])
| Date           = 
| Author         = [[User:Prophet of the Most High|Prophet of the Most High]] ([[User talk:Prophet of the Most High|talk]])
| Permission     = 
| other_versions = 
}}


{{FAL}}

[[Category:Music images]]
EXIF data
Width 	822 px
Height 	392 px
Bits per component 	1
Compression scheme 	LZW
Pixel composition 	1
Orientation 	Normal
Number of components 	1
Number of rows per strip 	119
Horizontal resolution 	96 dpi
Vertical resolution 	96 dpi
warning 	invalid TIFF directory; tags are not sorted in ascending order.
unknown field with tag 32840 (0x8048) encountered.
unknown field with tag 32841 (0x8049) encountered.
unknown field with tag 32842 (0x804a) encountered.
unknown field with tag 32843 (0x804b) encountered.
unknown field with tag 32844 (0x804c) encountered.
unknown field with tag 32845 (0x804d) encountered.
unknown field with tag 32846 (0x804e) encountered.
unknown field with tag 32847 (0x804f) encountered.
This sounds as it's a problem with tif files. ~~Ebe123~~ → report on my contribs. 23:18, 17 January 2012 (UTC)
As much as I would like to make it display this metadata properly, it's really not worth it, considering how rare TIFF files are. I will make it not crash, though. — This, that, and the other (talk) 23:52, 17 January 2012 (UTC)

Wikibreak

I will be away from about 00:00 UTC tomorrow (Sat 21 Jan) until about 23:00 Wed 24 Jan.

Also, we're one step closer to upload-by-URL, which should radically improve transfer speeds. — This, that, and the other (talk) 01:59, 20 January 2012 (UTC)

Now, we're 1 step further to UbURL, as the bug has been re-opened. ~~Ebe123~~ → report on my contribs. 10:49, 24 January 2012 (UTC)

Licensing

</nowiki> |}

FORTHE~1.CFG with some privacy removed
LocalPassword=secret
CommonsPassword=secret
LocalDomain=en.wikipedia
LocalUserName=Stefan2
LocalSysop=false
CommonsUserName=Stefan4
UseHttps=true
LogTransfers=true
OpenBrowserAutomatically=true
AutoUpdate=true
LocalWikiData=
CurrentSourceOption=TextFile
SourceCategory=
SourceTextFile=a file name specified here

Stefan2 (talk) 18:44, 22 January 2012 (UTC)

This really shouldn't happen in the latest version of FtCG; I'm not sure what problem you're having. I simply have not been able to reproduce it. — This, that, and the other (talk) 23:22, 25 January 2012 (UTC)

Line break

When adding a {{NowCommons}} tag, could you also make sure to add a line break after it? It currently breaks page syntax in some cases, e.g. here. I've seen people correcting the syntax on the file information pages before deletion, so it would be better if the tool could add a line break so that people won't waste time doing that. --Stefan2 (talk) 22:15, 24 January 2012 (UTC)

I've seen that too.
Diff:
But plain text diffs are hard to read. You may collapse. ~~Ebe123~~ → report on my contribs. 22:39, 24 January 2012 (UTC)
Yeah, I suppose adding an extra line break wouldn't hurt. — This, that, and the other (talk) 01:23, 25 January 2012 (UTC)

List of contributions

Your tool uses English words for the list of old revisions:

Date/Time Dimensions User Comment

Would it be possible to use international words instead? That is:

Date/Time Dimensions User Comment

{| class="wikitable" ! {{int:Filehist-datetime}} !! {{int:Filehist-dimensions}} !! {{int:Filehist-user}} !! {{int:Filehist-comment}} |}

This would automatically localise the table so that it uses the language used for Commons menus instead of always using English. Try adding ?uselang=sv or ?uselang=fr to the URL and you'll see that the headers change if you use the "int" variant. --Stefan2 (talk) 14:27, 29 January 2012 (UTC)

Good use of parser. Yes to the change. ~~Ebe123~~ → report on my contribs. 14:58, 29 January 2012 (UTC)
Yes yes yes yes yes. Thanks Stefan. — This, that, and the other (talk) 04:06, 30 January 2012 (UTC)
It is also possible to use a localised file size in the table: 5 bytes = {{int:size-bytes|5}}. Try using ?uselang=hy, ?uselang=war or ?uselang=os to see why this may be useful. --Stefan2 (talk) 14:01, 31 January 2012 (UTC)

Suggestion

I've had a try of the tool and I'm not switching (yet). Currently using the same tool as commons:User:SreeBot (I asked the owner for a copy). It's not quite as easy as FtCG to use (you have to paste the url or drag an image into the name box), but it does call up WikiSense to fill in the categories for you - and unlike Commons Helper, it will time out after 60 seconds if WikiSense is too slow. Maybe you can use some of the code from this app to call WikiSense? I've no idea how it's coded, I know it needs dotNet4 to run.  Ronhjones  (Talk) 22:11, 31 January 2012 (UTC)

I don't like WikiSense very much. It seems to trawl the description of the image to work out what categories it should be in, which is mostly useless, especially when images have a poor description (as most do). It makes too many mistakes for my liking. As a result, I don't really plan to do this, unfortunately. However, I do eventually plan to add a HotCat-like mechanism in. It would take a long time to write, but it should be worth the time. — This, that, and the other (talk) 11:26, 2 February 2012 (UTC)
Maybe you could scan the file information page for local categories? Some Wikipedia files are categorised and you could find Commons categories by searching for {{commonscat}} at the category page. To save time, keep any already identified categories in a local file so that category pages don't have to be scanned every time. --Stefan2 (talk) 18:41, 7 February 2012 (UTC)
Commonscat is deprecated, and the wikitext can easily be cleaned up if commons category interwikis are present. So I don't intend to support it. — This, that, and the other (talk) 07:00, 10 February 2012 (UTC)

Locked settings

Hello, I am trying to use the newest version but it says that it cannot access the settings file. I loaded 1.0.1.1 and it works fine. Also, I created Category:Images by Clark Anderson to make sure they went into that category on Commons, but for some reason the program is commenting the category out. Why is this desirable? Wouldn't a bad category always be preferable to none at all? ▫ JohnnyMrNinja 21:47, 5 February 2012 (UTC)

What sort of error do you get? If it's a "Failed to read settings file", just delete the old settings file and start again. (Don't forget also to always open FtCG by double-clicking on the program file directly, instead of opening it through the Downloads window in your web browser.)
Local categories are invariably absent on Commons, so I made FtCG comment them out. Usually, I find myself simply deleting the categories from the FtCG box, then going to Commons after the transfer and adding new ones with HotCat. If you want, you can tweak the local wiki data file to remove/uncomment categories. — This, that, and the other (talk) 09:20, 6 February 2012 (UTC)
I realise that that last statement wasn't as helpful as it might have been. Still, I think a better solution in this case is to hold the uncommented category markup on your Clipboard (Ctrl+C) and paste it over the commented-out line (Ctrl+V) every time. It takes only a second to do, and is my preferred method in such situations. — This, that, and the other (talk) 09:35, 6 February 2012 (UTC)

Quick languages

I have found info for many wikis (wikipedia) (templates and category) for many wikipedias, so here they are are.

Language (code) Template Category
Copy to Wikimedia Commons NowCommons Namespace Name
ar نقل إلى كومنز الآن كومنز تصنيف نقل إلى كومنز
fi Commonsiin NowCommons Luokka Commonsiin siirrettävät kuvat
hsb Kopěruj do Wikimedia Commons NowCommons Kategorija Kopija do Wikimedia Commons
hu Commonsba Azonnali-commons Kategória Commonsba másolandó képek
is Færa á Commons NowCommons Flokkur Myndir sem skal færa á Commons
ms Hantar ke Wikimedia Commons NowCommons Kategori Pindah ke Wikimedia Commons
pl Do Commons / NaCommons / Na Commons NowCommons Kategoria Pliki oczekujące na przeniesienie do Commons
ru На Викисклад Перенесено на Викисклад Категория Файлы:К переносу на Викисклад
sl Skopiraj v Zbirko OdslejZbirka Kategorija Skopiraj v Zbirko / Copy to Wikimedia Commons (bot-assessed)
sr За оставу NowCommons Категорија Слике за премештање на Оставу
zh Copy to Wikimedia Commons NowCommons Category 轉移到維基共享資源
af NowCommons
als NowCommons
am NowCommons
ang NowCommons
ast EnCommons
az NowCommons
bar NowCommons
bg NowCommons
bn NowCommons
bs NowCommons
ca AraCommons
cs NowCommons
cy NowCommons
da NowCommons
de NowCommons
dsb NowCommons
el NowCommons
eo Nun en komunejo
es EnCommons
et NüüdCommonsis
fa NowCommons
fo NowCommons
fy NowCommons
ga Ag Cómhaoin
gl EnCommons
gv NowCommons
he גם בוויקישיתוף
hr NowCommons
hu Azonnali-commons
ia NowCommons
id NowCommons
ilo NowCommons
io NowCommons
it NowCommons
ja NowCommons
jv NowCommons
ka NowCommons
kn NowCommons
ku NowCommons
lb Elo op Commons
li NowCommons
lt NowCommons
lv NowCommons
mk NowCommons
mn NowCommons
nds-nl NoenCommons
nn No på Commons
no NowCommons
oc NowCommons
pt NowCommons
ro AcumCommons
sa NowCommons
scn NowCommons
sh NowCommons
sk NowCommons
sq NowCommons
sr NowCommons
st NowCommons
su IlaharKiwari
sv NowCommons
sw NowCommons
ta NowCommons
th มีที่คอมมอนส์
tl NasaCommons
tr NowCommons
uk NowCommons
ur NowCommons
vec NowCommons
vi NowCommons
vo InKobädikos
wa NowCommons
zh-min-nan Commons ū
zh-yue subst:Ncd

Ebe123's langauges userpage (talk now! 12:01, 6 February 2012 (UTC)

Japanese is wrong. If you add ja:Template:NowCommons, it ends up in a category that no one ever checks. Instead, put {{即時削除|ファイル1-5|name on Commons with or without namespace}} on the file information page and {{subst:コモンズへの移動通知|file name at Japanese Wikipedia without namespace|file name at Commons without namespace}}--~~~~ at the talk pages for all uploaders. I have made a local file for Japanese Wikipedia that I'm using myself, but since the tool doesn't support adding a notice on the talk pages of the uploaders, I haven't made the file available for anyone else since other people might forget to manually put the notice on the uploaders' talk pages. --Stefan2 (talk) 18:39, 7 February 2012 (UTC)

Ebe, what do you intend to happen with these? There is not enough info to construct a proper local wiki data file from this. — This, that, and the other (talk) 07:01, 10 February 2012 (UTC)
See also commons:COM:VP#Global licensing policy enforcement where a user complains about copyright enforcement on other Wikipedia projects. It might be a bad idea to provide any data files for projects with bad copyright records (people were even talking about blocking Commons Helper entirely from those projects). --Stefan2 (talk) 20:09, 11 February 2012 (UTC)
As for the Global policy enforcement, I think that we could still have FtCG there, but put a warning about Licensing. For the info part, I think that not enough is better than nothing. ~~Ebe123~~ → report on my contribs. 01:58, 12 February 2012 (UTC)

RTL Support

With Arabic on the list, there must be support for Right-to-Left languages, such as getting the text box text right (pun). Ebe123's langauges userpage (talk now! 12:01, 6 February 2012 (UTC)

I have no idea how to support RTL. What specifically needs to be done? I'll try to do it if possible, but surely Windows' default support for RTL text in FtCG's editing window is sufficient. — This, that, and the other (talk) 07:04, 10 February 2012 (UTC)

Strange spacing issue

Please see this edit. It appears that adding Nowcommons breaks the top level two header. Sven Manguard Wha? 21:23, 9 February 2012 (UTC)

I was too slow; that file has been deleted, so I can't see the diff. To be honest, I don't really care about how the file page looks after {{now Commons}} has been applied, since it is in all likelihood going to be deleted anyway. If it's seriously stuffed, I'll fix it, but line-break issues are not important. — This, that, and the other (talk) 07:03, 10 February 2012 (UTC)
Wait, you're not an admin? We must rectify this immediately. Sven Manguard Wha? 02:49, 21 February 2012 (UTC)

Bug

I moved this file but FTCG decided to use different picture (see https://commons.wikimedia.org/wiki/File:ChadwickEuclidAve.jpg). Note: FTCG preview showed transferred file. --Bulwersator (talk) 14:12, 23 February 2012 (UTC)

Please note that the transferred file is now at Commons:File:James and Andrew Dall Houses Cleveland Ohio.jpg - Eureka Lott 19:35, 23 February 2012 (UTC)
Sometimes, when you click "Random file" before the preview of the file currently in view has loaded, the old file comes up in the Preview box. It is the image you see in the preview box that gets transferred. If you notice that the wrong image is in the preview box, click "Go" at the top to refresh FtCG's view.
This is a known issue. I have attempted to reduce the frequency of this problem, but due to the nature of asynchronous requests it can be quite difficult to fully eradicate it. — This, that, and the other (talk) 02:37, 25 February 2012 (UTC)

NowCommons replacement

For March, could NowCommons be replaced by {{March 2012 MtC drive}} but with all the parameters remaining? This is for the next drive. ~~Ebe123~~ → report 13:45, 26 February 2012 (UTC)

It would be easier to provide a custom local wiki data file. I will work on this.
I feel that it would be easier to have the template with a non-temporal name, like "Now Commons (MtC drive)" or suchlike. — This, that, and the other (talk) 09:04, 27 February 2012 (UTC)
This must be done and released for tomorrow. Really, here's the file:
File
# For the Common Good
# Local wiki data for English Wikipedia (built into FtCG)

LocalDomain=en.wikipedia (Default)

Category1=Copy to Wikimedia Commons
Category2=Copy to Wikimedia Commons (bot-assessed)
Category3=Move to Commons Priority Candidates
DefaultCategory=3

NowCommonsTag=NowCommons (MtC drive)

# These are ignored on enwiki at the moment, since they are unnecessary
Information=Information
Description=Description
Date=Date
Source=Source
Author=Author
Permission=Permission
Other_versions=Other_versions

Summary=Summary|Description
Licensing=Licensing:?

CategoryNamespace=Category

CopyToCommonsRegex={{(mtc|(copy |move )?to ?commons|move to wikimedia commons|copy to wikimedia commons)[^}]*}}\n?

[PotentialProblem]
IfContains={{db-
Message=The file appears to be tagged for speedy deletion.

[PotentialProblem]
IfContains={{di-
Message=The file is tagged with a dated (DI) deletion tag.

[PotentialProblem]
IfContains={{puf
Message=The file appears to be listed at PUF (Possibly unfree files). Check the discussion before transferring.

[PotentialProblem]
IfContains={{ffd
Message=The file appears to be nominated for deletion. Check the deletion discussion at FFD before transferring.

[PotentialProblem]
IfContains={{non-free
Message=The file appears to be non-free. Commons cannot accept non-free files.

[PotentialProblem]
IfRegex={{do not (copy|move) to commons
Message=The file is tagged with {{do not move to Commons}}.

[PotentialProblem]
IfRegex={{(keep ?local|nocommons)
Message=The file is tagged with {{keep local}} - do not delete the local file afterwards.

[PotentialProblem]
IfContains={{split media
Message=The file is tagged with {{split media}}. Click "Select version..." above to view earlier versions;  you may need to transfer each one separately.

[Replacement]
LookFor={{orphan image.*}}\n?
ReplaceWith=

[Replacement]
LookFor={{needs commons category}}
ReplaceWith=

[Replacement]
LookFor== *I .*created this (image|work) entirely by myself.?
ReplaceWith== {{own}}

[SelfLicenseReplacement]
LookFor={{PD-self([^\}]*)}}
ReplaceWith={{PD-user|%%OriginalUploader%%|en}}

[SelfLicenseReplacement]
LookFor={{GFDL-self-with-disclaimers([^\}]*)}}
ReplaceWith={{GFDL-user-en-with-disclaimers|%%OriginalUploader%%$1}}

[SelfLicenseReplacement]
LookFor={{GFDL-self([^\}]*)}}
ReplaceWith={{GFDL-user|%%OriginalUploader%%|en$1}}

[SelfLicenseReplacement]
LookFor={{self([^\}]*)}}
ReplaceWith={{self$1|author=[[%%InterwikiLinkPrefix%%:%%OriginalUploader%%|]]}}

~~Ebe123~~ → report 15:01, 28 February 2012 (UTC)

Sorry! I have been very busy recently. Yes, this file looks good. I'll upload it to my site soon. — This, that, and the other (talk) 08:00, 29 February 2012 (UTC)
See http://atlight.github.com/ftcg/localdata.html, second link. The link to the direct download is http://atlight.github.com/ftcg/en.wikipedia%20MtC%20drive.wiki. — This, that, and the other (talk) 10:50, 29 February 2012 (UTC)

Proposal

In the English Wikipedia file at this page, I propose that you replace

[SelfLicenseReplacement]
LookFor={{self([^\}]*)}}
ReplaceWith={{self$1|author=[[%%InterwikiLinkPrefix%%:%%OriginalUploader%%|]]}}

with

[SelfLicenseReplacement]
LookFor={{self([^\}]*)}}
ReplaceWith={{self$1|author=[[%%InterwikiLinkPrefix%%:User:%%OriginalUploader%%|]]}}

This should also be corrected in the built-in file. I always have to add the "User:" part to make the link to the user page work & there is a risk that I might sometimes forget to do so. --Stefan2 (talk) 21:07, 7 March 2012 (UTC)

Sorry for this! There are finally enough bug fixes for me to put out a new version, which I will do in a few hours when I'm not behind a firewall. — This, that, and the other (talk) 23:18, 7 March 2012 (UTC)

New version

Sorry for the wait. 1.0.4.2 is now available. If you find any more bugs, please do report them. Thanks. — This, that, and the other (talk) 06:34, 9 March 2012 (UTC)

{{according to EXIF data}}

Could you change "{{ISOdate|YYYY-MM-DD}} (from metadata)" into "{{according to EXIF data|YYYY-MM-DD}}"? --Stefan2 (talk) 23:12, 20 March 2012 (UTC)

Sorry for the slow reply. I don't check this page much anymore. But I'll keep this request in mind. — This, that, and the other (talk) 01:04, 4 April 2012 (UTC)

See Commons:Special:PermanentLink/69323264. The link to the file on English Wikipedia doesn't work. The first revision has the exact syntax provided by your tool. Fixed manually in later revisions of the file information page. --Stefan2 (talk) 21:55, 4 April 2012 (UTC)

Yep, OK, a bug. I will upload version 1.0.4.3 (with this, and the above issue, both fixed) in a few minutes.
Thanks for continuing to use FtCG! — This, that, and the other (talk) 06:43, 7 April 2012 (UTC)
Well, your tool only has some minor flaws, unlike the other tools which have more problematic errors. I'm sometimes moving files from Japanese Wikipedia to Commons and Magnus Manske's tool fails to upload files if the file name on Japanese Wikipedia starts with a Japanese character (fairly common at Japanese Wikipedia) while your tool has no problem with such files. Besides, the cleanup task tends to be faster when using your tool. --Stefan2 (talk) 11:26, 7 April 2012 (UTC)

Files without file information page

If there is a file but no file information page, this tool doesn't fill in anything as a proposed Commons file information page (i.e. no file upload log etc.) and the "view file page on English Wikipedia" link doesn't work. Happened to me with File:50 caliber bullet headstamp 1943.jpg. It's only really the "view file page on English Wikipedia" link which matters since files without a file information page normally are unlicensed. --Stefan2 (talk) 18:10, 21 April 2012 (UTC)

Noted; this needs a look. — This, that, and the other (talk) 11:21, 27 April 2012 (UTC)
As far as I know, it is not possible to delete a file description page without deleting the corresponding file. I tried blanking the description page of File:Test MIDI file for testing purposes only.mid (you are welcome to use that file for testing purposes; I'm going to have it deleted once this bug is fixed). Can you see if you can arrange it so this test file triggers that bug? — This, that, and the other (talk) 02:09, 28 April 2012 (UTC)
I managed to do this on commons by using "move" for file instead of "move and replace gadget". I am unable replicate this, but it happened (AFAIK it was commons:File:Eugene Delacroix ;;;;;;;;;;;;;;;;;;;;.jpg (now deleted) ). Bulwersator (talk) 09:11, 28 April 2012 (UTC)
Sorry, I forgot to answer here. Your test file is now deleted, but I guess that this happens so rarely that it might not be worth to fix it. Not sure what's causing files without file information pages. Maybe a bug in MediaWiki. --Stefan2 (talk) 14:12, 9 May 2012 (UTC)

Treat zero EXIF date as no EXIF date

Minor feature request of no urgency: If an EXIF date exists but is just zero/blank/worthless, treat it as if it didn't exist, instead of using Commons:Template:According to EXIF with 0000-00-00 or whatever. Example: File:Rockmart Art Center Theatre.JPG, in which EXIF tags for dates appear to exist but are zeroes. (I don't know enough about EXIF yet to know what is a useless date, as opposed to a rare date someone may have added on purpose.) --Closeapple (talk) 00:09, 9 May 2012 (UTC)

MediaWiki seems to consider 0000-00-00 an "unknown date", so perhaps FtCG should too. As you say, though, it's hardly an urgent fix. — This, that, and the other (talk) 07:32, 9 May 2012 (UTC)

Crash when declining

I've noticed that the app crashes (reproducibly) if you decline a transfer immediately after starting up. This happens on both Windows 7 64-bit and Windows XP 32-bit. The error (on Win7, at least) appears to be "System.InvalidOperationException occurred in ForTheCommonGood_1.0.4.3.exe [3344]." The app does not crash if you transfer an image first, and decline a later image. —Darkwind (talk) 21:27, 14 May 2012 (UTC)

What's the point in pressing the "decline transfer" button? It just removes the {{copy to Commons}} template which will later be re-added again when/if Fastily or Sven Manguard decides to do a bot run again. If you use Twinkle to propose the file for deletion for any reason, Twinkle is supposed to remove the tag anyway. --Stefan2 (talk) 21:44, 14 May 2012 (UTC)

bad url

Uuugh, I accidentally added in the settings as local wiki "en.wikibooks." which causes some problems with a really bad message: Would you add an additional check if the user is simply too stupid to inserting an valid domain? (with a better message than the existing). Regards, mabdul 11:01, 21 May 2012 (UTC)

Yeah, error handling isn't great :) — This, that, and the other (talk) 05:57, 26 May 2012 (UTC)
Oh one more feature request:
Another great improvement would be an option to autoskip the already tagged images with {{Nowcommons}}. (this is useful since I got a text file with orphaned files from Betacommand which works really great with that tool!)
Regards, mabdul 12:36, 26 May 2012 (UTC)
For orphaned files, tell the tool to search for files in Category:Wikipedia orphaned files instead. The tool skips {{NowCommons}} files if you go through a category but not if you go through a file. Still, it would be practical if the tool could skip {{NowCommons}} stuff and stuff no longer present on Commons. I have a few somewhat old text files that I'm processing, and images in those files have sometimes already been moved. --Stefan2 (talk) 15:21, 26 May 2012 (UTC)
I started to work on en.wikibooks and there doesn't exist such an category and FTCG is not able to use Special:Unusedfiles. mabdul 16:03, 26 May 2012 (UTC)

Oh and another reqquest: Can you provide any other "preview" for ogg files? The standard red x in the white square is not useful. I was highly confused that somebody uploaded such an image until I recognized that it is a sound file... Maybe a link to open the sound directly in the browser or standard program (for ogg files) should be given so that I don't have to open the page first... mabdul 22:19, 28 May 2012 (UTC)

Why? If I go to a file information page (say, File:Big Buck Bunny small.ogv, just to pick the first one I could find in the Ogg article), the only difference to going directly to the file (Media:Big Buck Bunny small.ogv) is that I have to press a "play" button in order to tell my browser to start playing the film, whereas if I open the file directly in the browser, the film starts playing automatically. --Stefan2 (talk) 22:47, 28 May 2012 (UTC)
Exactly: I have to do one more click. ;) mabdul 16:29, 5 June 2012 (UTC)
It's simple enough to open it in the browser, especially considering how uncommon OGG/OGV/MID files are in the scheme of things. — This, that, and the other (talk) 01:10, 10 June 2012 (UTC)

Special:ListFiles

Is it possible to get a feature similar to 'other source' cat/file something like Special:ListFiles/Example or Special:Contributions/Example? mabdul 16:29, 5 June 2012 (UTC)

Tell Special:ListFiles to list all files, say Special:ListFiles/Example?limit=500. Then download the file:
wget 'http://en.wikipedia.org/w/index.php?title=Special:ListFiles/Example&limit=500'
Finally create a list which only contains file names:
grep 'title="File:' name_of_downloaded_file | sed 's/^.*title="File:\([^\"]*\).*$/\1/g' > somefile
Now you have a text file with one file name on each row. Just tell the tool to choose files from that list. --Stefan2 (talk) 17:11, 5 June 2012 (UTC)
That's the power of the text file option. Of course you need a bash-style shell to execute those commands... — This, that, and the other (talk) 01:08, 10 June 2012 (UTC)
Yes. Sorry, I forgot that this tool is for Windows. I rarely use Windows except when I'm using this tool. --Stefan2 (talk) 11:59, 10 June 2012 (UTC)
You can download Unix-style shells for Windows if you haven't already got one; I think Cygwin does a nice one. (This is directed at Mabdul...) — This, that, and the other (talk) 02:50, 11 June 2012 (UTC)

Why categories are commented out?

I know that sometimes category does not exist under the same name but it is trivial to create redirect. Bulwersator (talk) 10:18, 21 August 2012 (UTC)

"Replaced" appears even in situations where "move to Commons" template was absent in file description

http://en.wikipedia.org/w/index.php?title=File:Drewbeer.jpg&curid=2273225&diff=508117962&oldid=508117883 - Replaced {{move to Commons}} tag with {{now Commons}} tag (FtCG) edit description, despite the fact that now commons template was absent Bulwersator (talk) 11:28, 19 August 2012 (UTC)

I've seen that too lots of times. Does it really matter? Files are typically deleted very soon anyway. --Stefan2 (talk) 15:25, 19 August 2012 (UTC)
I know, it is a very minor thing - but still it would be better fixed Bulwersator (talk) 10:51, 21 August 2012 (UTC)
Hmm, this shouldn't happen. Still it's minor, so let's leave it for now. — This, that, and the other (talk) 03:04, 25 August 2012 (UTC)
Oh I think I understand this now. The logic is reversed; it uses the "replaced..." edit summary when adding the tag afresh, and the "adding..." summary when replacing the tag. Sorry! — This, that, and the other (talk) 07:28, 26 August 2012 (UTC)

Bug with {{original description page}}

See here. If the name of the file namespace is 5 letters instead of 4, then the tool doesn't remove the ":" after the namespace name. --Stefan2 (talk) 19:42, 25 August 2012 (UTC)

A stupid mistake on my part. Will be fixed - I'll upload a new version soon. — This, that, and the other (talk) 07:28, 26 August 2012 (UTC)

Traversing category

Currently it is possible only to find next random image. It would be helpful to have ability to see pictures also in the same order as displayed on category pages (sometimes there are series of very similar images with the same names) Example: https://en.wikipedia.org/w/index.php?title=Category:NASA_images&filefrom=ISSafterSTS106.jpg#mw-category-media - Location of lunar crater (...) - all files from this group require the same changes and fixing all in one go would be more efficient Bulwersator (talk) 06:04, 26 August 2012 (UTC)

In that case, you should use the Text File option, since that moves through a list sequentially. You should create a CategoryTree using this wikicode:
{{#categorytree:NASA images|namespaces=6}}
Then copy the resultant list to a text file. See if that helps you.
This, that, and the other (talk) 07:28, 26 August 2012 (UTC)
Thanks, I always used constantly crashing catscan to produce list that still needed more modifications. Thanks! Bulwersator (talk) 08:51, 26 August 2012 (UTC)

A note for coders: FtCG now on GitHub

For coders, the source code is available at http://github.com/atlight/ForTheCommonGood. You can download it as a ZIP file, for general hacking, or you can fork the repository and make pull requests if you are inclined that way. — This, that, and the other (talk) 10:45, 26 August 2012 (UTC)

File on commons

If file exists on commons but there is a file description page (without file) on enwiki link "view file page on English Wikipedia" is inactive - example: File:Challenger explosion.jpg Bulwersator (talk) 08:48, 28 August 2012 (UTC)

For me, it just says "file does not exist on local wiki", which is what it should say...! — This, that, and the other (talk) 05:26, 29 August 2012 (UTC)

template to be removed

template:bots and template:ffd - I think that this one may be also safely removed from file description Bulwersator (talk) 09:24, 28 August 2012 (UTC)

[Replacement]
LookFor={{(bots|nobots|Wikipedia:Bots/Status/template)[^}]*}}
ReplaceWith=
[Replacement]
LookFor={{ffd[^}]*}}
ReplaceWith=


Seems to work Bulwersator (talk) 19:07, 29 August 2012 (UTC)

Yes I'll add them to en.wikipedia.wiki default. — This, that, and the other (talk) 08:03, 30 August 2012 (UTC)

Is there any way to change default source?

I would like to change source to NASA if {{PD-USGov-NASA}} template is present. Is it currently possible to do this? Bulwersator (talk) 14:17, 28 August 2012 (UTC)

Not without downloading source code, editing it, and compiling manually. — This, that, and the other (talk) 09:49, 2 September 2012 (UTC)

new template problem

template:C-uploaded - this one also should result in warning Bulwersator (talk) 19:02, 29 August 2012 (UTC)

ready code to default language file:

[PotentialProblem]
IfRegex={{(C-uploaded|Uploaded from Commons|C uploaded|C-upload|Cuploaded|m-cropped|Mcropped)
Message=File was temporarily copied from Commons (used on main page)
Yep, c-uploaded done. {{mcropped}} really needs a separate message, but I don't want to add the rare ones since each potential problem slows down FtCG just a little bit more. So we might forgo that one. — This, that, and the other (talk) 08:22, 2 September 2012 (UTC)
Why separate? It is also file, also copied from Commons, also temporarily and also because it is used on main page Bulwersator (talk) 08:37, 2 September 2012 (UTC)
Not always copied from Commons - it could be copied from a local file. — This, that, and the other (talk) 09:49, 2 September 2012 (UTC)

and template:File at CCI

[PotentialProblem]
IfRegex={{File at CCI
Message=This file has been uploaded by a user who is currently the subject of a contributor copyright investigation.
Will add. (By the way, it is better to use "IfContains=" when no special regex features are needed.) — This, that, and the other (talk) 08:22, 2 September 2012 (UTC)

and

[PotentialProblem]
IfRegex={{di-
Message=The file appears to be tagged for dated speedy deletion.
This one is already there. — This, that, and the other (talk) 08:22, 2 September 2012 (UTC)

Bulwersator (talk) 19:05, 29 August 2012 (UTC)

Problems with uploading files that were deleted on Commons

  • With "Ignore warnings" disabled - I receive warning, no upload happens, no message about success (all OK)
  • With "Ignore warnings" enabled - I receive warning (not OK), upload happens (OK), no message about success (not OK)

If test image is needed: link to list of images that were deleted on Commons - http://en.wikipedia.org/wiki/Special:WhatLinksHere/Template:Deleted_on_Commons

Bulwersator (talk) 19:52, 31 August 2012 (UTC)

That's why "ignore warnings" shouldn't normally be turned on. You should ONLY turn it on if you are certain that FtCG's warning is wrong, and it is preventing you from uploading a legitimate image. — This, that, and the other (talk) 00:25, 1 September 2012 (UTC)

Oh right, Ignore warnings is broken, isn't it...! I'll try and fix it. — This, that, and the other (talk) 00:44, 1 September 2012 (UTC)
Yeah, I've uploaded version 1.0.4.6 to http://atlight.github.com. Please download and see if it fixes the issue; if it does, I'll then release it to autoupdate. — This, that, and the other (talk) 01:14, 1 September 2012 (UTC)
Issue fixed Bulwersator (talk) 01:55, 1 September 2012 (UTC)

Why categories are commented out?

I know that sometimes category does not exist under the same name but it is trivial to create redirect on Commons Bulwersator (talk) 08:48, 28 August 2012 (UTC)

Many enwiki categories should not exist on Commons. That is my theory anyway. — This, that, and the other (talk) 01:45, 1 September 2012 (UTC)
Is there category like this that may be used in categorisation of image on enwiki? I know that Category:All Wikipedia files with the same name on Wikimedia Commons etc should not exist on Commons, but nobody sane will use it here to categorise image. Bulwersator (talk) 01:50, 1 September 2012 (UTC)
Wikipedia categories are typically called "Images of X" whereas Commons categories drop the words "Images of", becoming just "X". Also, Commons categories are usually more exact (e.g. "Statues in the city" instead of "Images of the city"), so categories usually need to be replaced anyway. --Stefan2 (talk) 08:34, 1 September 2012 (UTC)
This one may be handled with easy replacing ( text = Regex.Replace(text, @"\[\[Category:Images of", "[[Category:", RegexOptions.Compiled); ) in my version, and it is easier to choose more specific categories using catscan than get rid of comments Bulwersator (talk) 18:10, 7 September 2012 (UTC)

.6 FTCG - warnings are broken

Even with "Ignore warning" disabled, warnings are ignored (example: File:Bertha (2008) Estimated Winds.gif) Bulwersator (talk) 11:35, 1 September 2012 (UTC)

Pfffff, I really can't get this right! What warning should we be seeing? — This, that, and the other (talk) 11:48, 1 September 2012 (UTC)
Strange. I was sure that .4 FTCG detected and warned about template:di-no source, but I was wrong. Sorry, I added it to new suggested warnings. Bulwersator (talk) 12:31, 1 September 2012 (UTC)
It should, and in fact it does for me. — This, that, and the other (talk) 22:49, 1 September 2012 (UTC)

Declining transfer crashes FTCG

Declining transfer edit happens, FTCG attempts to load next picture, than FTCG crashes Bulwersator (talk) 13:32, 8 September 2012 (UTC)

Why do you need to decline transfer? Just click on the button to go to the next image instead. --Stefan2 (talk) 14:26, 8 September 2012 (UTC)
Yeah, but it still shouldn't crash. Can you paste in the Crash Stack Trace (with redaction of folder paths)? — This, that, and the other (talk) 10:54, 9 September 2012 (UTC)
I also cannot imagine use for this (as it is impossible to add something to file description). Description supplied by Windows - is it enough?

Opis:

 Stopped working

Podpis problemu:

 Nazwa zdarzenia problemu:	CLR20r3
 Podpis problemu: 01:	forthecommongood_1.0.4.6.exe
 Podpis problemu: 02:	1.0.4.6
 Podpis problemu: 03:	504160d3
 Podpis problemu: 04:	mscorlib
 Podpis problemu: 05:	2.0.0.0
 Podpis problemu: 06:	4ef6c7cc
 Podpis problemu: 07:	11cd
 Podpis problemu: 08:	47
 Podpis problemu: 09:	System.InvalidOperationException
 Wersja systemu operacyjnego:	6.1.7601.2.1.0.768.3
 Identyfikator ustawień regionalnych:	1045

Bulwersator (talk) 12:53, 15 September 2012 (UTC)

How about simply removing the "decline transfer" button? It seems that it only removes the {{Move to Commons}} template which is then reinstated by User:Svenbot on the next bot run. --Stefan2 (talk) 16:04, 15 September 2012 (UTC)

Code to catch file description on pages without Information template (heurestic, but almost alway works)

(edit section to see real code)

after

               if (!textLowercase.Contains("{{information") &&
                   !Regex.IsMatch(text, "{{" + LocalWikiData.Information, RegexOptions.IgnoreCase))
               {

newcode

                   string description = Regex.Replace(text, "{{[^}]*}}", "", RegexOptions.IgnoreCase);
                   description = Regex.Replace(description, "==[^=]*==", "", RegexOptions.IgnoreCase);
                   description = Regex.Replace(description, "\n*$", "", RegexOptions.IgnoreCase);
                   description = Regex.Replace(description, "^\n*", "", RegexOptions.IgnoreCase);
                   text = Regex.Replace(text, Regex.Escape(description), "", RegexOptions.IgnoreCase);

before

                   XmlNode exifDateNode = iis[iis.Count - 1].SelectSingleNode("metadata/metadata[@name=\"DateTime\"]");

and in the same function

"|Description = {{" + GetCurrentLanguageCode() + "|1=" + description +"}}\n" +

instead of old

"|Description = {{" + GetCurrentLanguageCode() + "|1=}}\n" +

Bulwersator (talk) 13:40, 8 September 2012 (UTC)

Looks good! I would add a check to make sure the detected description was one line, since often, two or more lines indicates (a) not a description or (b) second line is source info, etc. which needs to be dealt with manually. — This, that, and the other (talk) 10:57, 9 September 2012 (UTC)
Yes!! This works great with my modification above. A new version coming soon. — This, that, and the other (talk) 09:37, 18 September 2012 (UTC)