LanguageRemover GetFileName

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/6/2012 8:52:59 AM
Gravatar
Total Posts 27
https://ict.ken.be
Hybrid coding since
the dawn of time.

LanguageRemover GetFileName

Hi, I changed the check for the english resource. It was failing because my path contains also '.'

LanguageRemover

Program.cs

private static bool ShouldKeep(string[] langsToKeep, string fileName)
...

var realFileName = Path.GetFileName(fileName);
if (realFileName.IndexOf('.') == realFileName.LastIndexOf('.')) { return true; }

...

5/7/2012 3:10:27 PM
Gravatar
Total Posts 18439

Re: LanguageRemover GetFileName

This is fixed in the repository though if it were me I would avoid using . in folder names

Best,

Joe

5/7/2012 3:28:26 PM
Gravatar
Total Posts 27
https://ict.ken.be
Hybrid coding since
the dawn of time.

Re: LanguageRemover GetFileName

Thanks, I didn't get your point with avoid using . in folder names. Mojo uses them also all the time : mojoPortal.Business, mojoPortal.Net, ... Smile

K

5/7/2012 3:37:51 PM
Gravatar
Total Posts 18439

Re: LanguageRemover GetFileName

I meant in a web site, those folders aren't part of the Web.

Best,

Joe

5/7/2012 5:39:10 PM
Gravatar
Total Posts 27
https://ict.ken.be
Hybrid coding since
the dawn of time.

Re: LanguageRemover GetFileName

Indeed, I would not use . in web folders either. Bad idea.

You must sign in to post in the forums. This thread is closed to new posts.