Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
make FileService.findHLocale static (mikado method)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmason committed Jul 17, 2013
1 parent fc4c7c7 commit 6ca82d5
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -193,7 +193,7 @@ private Response tryUploadTranslationFile(String projectSlug, String iterationSl
{
checkTranslationUploadPreconditions(projectSlug, iterationSlug, docId, localeId, uploadForm,
identity, projectIterationDAO, session, documentDAO, translationFileServiceImpl);
locale = findHLocale(localeId);
locale = findHLocale(localeId, localeDAO);
checkTranslationUploadAllowed(projectSlug, iterationSlug, localeId, locale);

Optional<File> tempFile;
Expand Down Expand Up @@ -330,7 +330,7 @@ private boolean isTranslationUploadAllowed(String projectSlug, String iterationS
&& identity != null && identity.hasPermission("add-translation", projectIteration.getProject(), localeId);
}

private HLocale findHLocale(String localeString)
private static HLocale findHLocale(String localeString, LocaleDAO localeDAO)
{
LocaleId localeId;
try
Expand Down

0 comments on commit 6ca82d5

Please sign in to comment.